Print Design Templates Take a look at these creative Graphic Design templates for brochures, flyers, newsletters, stationery, postcards, ads, menus and posters for a variety of businesses.
Invoicing 4 Freelancers A complete, secure, online billing application that maintains hourly service billing, flat fee billing and recurring charges. Integration with Authorize.Net and other leading payment gateways provides hands-free recurring billing with a sophisticated CRM system.
Free Design Magazines Browse through our extensive list of free Graphic Design, Web Design, Business, Computer, and Computer Graphics magazines, white papers, downloads and podcasts to find the titles that best match your skills and interests; topics include management, marketing, operations, sales, and technology. Simply complete the application form and submit it. All are absolutely free to freelance professionals who qualify.
Suggested Links Photoshop Tutorials
Logo Designer's Logos
Web Design Tools List
Layouts & Templates Directory
Web Design & Graphic Design Blog
Photoshop, Flash, 3D Studio Max Tutorials
Web Designers & Developers
Crafts for Kids
Photoshop Tutorial Man
Tutorial Guide -- Free Webmaster Tutorials
Design Contests
How to Draw
Work From Home Job Search
OTHER SITES WE OWN
AllFreelance
Graphic Design Resources Directory
Graphics Tutorials Directory
Social Networking Articles
Design Sites Up
All Freelance Work & Portfolios
Graphic Design Community
Education & Learning Directory
![]() |
home > Web Design Tutorials > Programming Tutorials > XHTML Coding Tutorials > XHTML ELEMENTS & SYNTAX TUTORIALS
XHTML and HTML
Now that we have an understanding of the background of XHTML let's talk about some of the differences between XHTML and HTML.
The basic XHTML document
The first thing we need to define is our basic XHTML document format, the framework of which we will begin all our XHTML pages.
XHTML Document Form
XHTML is primarily made up of two things, markup tags and content. A markup tag is used to delimit content. Content plus the beginning and end tags that delimit it, constitute a document element.
XHTML Syntax
Writing XHTML demands a clean HTML syntax.Some More XHTML Syntax Rules…
The basic page
The code for a basic page is the same regardless of what you want to put on the page. There are a few elements that need to be included each and every time you make a page, and the code below explains…
XHTML Building Blocks
Elements and tags are the building block of XHTML. You need to fully understand both of these concepts to be able to write Web pages properly. We already touched on how they work in our example above but we're going to take a closer look now.
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
||
Document Structure
An xHTML document consists of two main parts: the head, and the body. The basic xHTML document structure is…
XHTML Page headers
There are three document types in XHTML 1 and see it syntax…
Introduction to XHTML
Most Internet users know that web pages are made in something called HTML. Even if they don't know what that acronym stands for, or have never made a web page of their own in their life, the term HTML means something to most web users.
XHTML for HTML users
What is XHTML? Well if you already know HTML 4.0, you are 99% there.Four Rules To Follow…
XHTML Coding
The first thing you need to know about changing over to XHTML as the new standard is that there really isn't much new to learn. No new tags or attributes have been added into your repertoire, like HTML 4 (although a few have been deprecated); this is just a move towards good, valid and efficient coding. XHTML documents stress logical structure and simplicity, and use CSS for nearly all presentational concerns.
XHTML The Basics
Many of you may have heard of XHTML but your wondering what it is and why use it? Well I will try my best to explain what it is and how to use it correctly. XHTML stands for Extensible HyperText Markup Language, and is quoted by W3.org like this…
XHTML CODING RULES AND SYNTAX
While these coding rules apply to XHTML, it is strongly recommended that you also follow these same rules when coding HTML.
Basics of XHTML
XHTML is a word that may seem intimidating to some of you who are just learning HTML. I want to alleviate some of that fear for you. XHTML is really not all that much different from HTML. XHTML is really just well formed HTML. XHTML is a form of XML that Web browsers can use.
Syntax
The syntax of XHTML is exactly the same as HTML, except for a few rules you need to follow. These rules ensure that the page is written cleanly, with correct code. Below are the rules of XHTML. You'll notice that some of the rules are the same as those of XML. XML's syntax rules are very strict, so in order to accomodate it, XHTML's rules are strict in many of the same ways.
En wikibooks - A Basic XHTML Document
Now, we're going to make a simple XHTML document. As I said before, the document starts with an html tag. The document also ends with /html. The HTML tag is refered to as the root element. Within those tags, there are two elements nested: the head element and the body element. Of course, other elements may be nested or sub-nested within these elements.
XHTML Rules and Syntax
The following are main differences between HTML4.01 and XHTML1.0 and the syntax you must follow to write conforming XHTML documents…
XHTML Basics
In this section we'll cover the XHTML basics - these important concepts can often account for more then half of the work a Web developer does in making a Web page…
XHTML Explained
XHTML has much stricter language syntax that HTML, however. To create fully valid XHTML documents, they must adhere to these rules/guidelines…
XHTML Syntax
If you're already familiar with HTML and would like to write XHTML,then this is for you…
XHTML Tutorial
This XHTML tutorial will show you how to code your pages using XHTML. It is probably much easier than you think. If you already know HTML, this XHTML tutorial should be an absolute breeze.Here are the main things to remember when writing XHTML….
XHTML Rules
XHTML is the latest World Wide Web Consortium standard as of this writing. It stands for XML Hypertext Markup Language (XHTML). It replaces HTML but is much like HTML with some additional rules to add better structure to the language. It, like HTML, has a strict, transitional, and frameset DTD...
XHTML CODING RULES AND SYNTAX
While these coding rules apply to XHTML, it is strongly recommended that you also follow these same rules when coding HTML.
First Web Page
It is now time to create your first Web page and view it in your browser. This page isn't very fancy, but it will familiarize you with the process of coding, editing, saving, and retrieving a page for display in your browser. So, open the Notepad editor and enter the text and code shown in the following listing.
Structure of an HTML Document
HTML and XHTML documents consist of text, which defines the content of the document, and tags, which define the structure and appearance of the document. The structure of an HTML document is simple, consisting of an outer html tag enclosing the document head and body...
What is XHTML
XHTML stands for extended HTML. It extends HTML 4.01 and is based on the XML document family. It is the next generation markup language for web pages, approved by W3C in 2000. XHTML documents are conform with XML, which means they are ready to be viewed, edited and validated with standard XML tools as well as XHTML conforming user agents.
XHTML Rules and Syntax
The following are main differences between HTML4.01 and XHTML1.0 and the syntax you must follow to write conforming XHTML documents….
XHTML Syntax
The syntax of XHTML is consistent with HTML syntax….
XHTML Building Blocks
Elements and tags are the building block of XHTML. You need to fully understand both of these concepts to be able to write Web pages properly. We already touched on how they work in our example above but we're going to take a closer look now.
Advanced XHTML Building Blocks
In this section we will be looking at the topics listed below, don't worry if the topic titles look a bit scary, they'll make sense when you get to them, but the titles will make it easier to check back for later.
XHTML document structure
An XHTML document consists of three main parts…
RECENT ARTICLES from Graphic Design BloG
[CaRP] Can't open cache file.
Business Cards: Ideas and Inspiration, Part II
Today we continue looking at business cards that stand out, and here’s hoping you get some inspiration and ideas! After all, you only get one first impression, so your business card should be something that showcases the best of your design abilities. On Wednesday we looked at the use of interesting shapes, 3D business cards, [...]
![]() |
![]() |
|
![]() |
![]() |
|
[CaRP] Can't open cache file.
Making the Move from Freelance Work to Full-Time Employment
If you are like me, after graduating from a graphic design school, your goal was to make it as a freelance web designer. The lure of flexible hours, working from home and the freedom to manage your own time was too much to resist. At some point, I decided it may be ?easier? to work [...]
Tips for Asking for a Raise
At some point in our careers, there is a time when we open our paychecks and breathe a sigh of disappointment. After years of studying at a graphic design school and countless hours spent devoted to learning from colleagues and researching new design techniques, the numbers on our pay stub just don?t seem to measure [...]
Stock vs. Original Digital Photography
A picture is worth a thousand words. Graphic design schools teach us that photos on web sites have the potential to capture our attention, motivate us to read more or even propel us to navigate to another web site entirely. They inflict emotion and can establish a connection between site visitors and the goods or [...]
3 Tips to Manage Content Updates
While walking through the pharmacy I passed the aisle filled with red heart-shaped boxes filled with chocolates and remembered Valentine?s Day is quickly approaching. Even though I was surrounded by so many representations of love, it reminded me of one thing that I actually despise ? web content updates! Graphic design schools teach many, many [...]
Should You Drop the Drop-Down Menus?
I was recently on a home improvement web site searching for ideas for renovating my bathroom. After a few minutes on the site I realized that I was not going to find what I was looking for ? it certainly could have been there, but I just could not find it. Menu after menu had me [...]
Sharpen Your Skills and Gain an Edge at 2011 Web Design Conferences
Graphic design schools prepare us well for our immediate future, but it takes effort to stay on top of the ever-changing field of web design. Following are a few of the upcoming conferences and trade shows meant to help you stay a step ahead of the competition.
Interaction Eleven In its fourth year, Interaction Eleven is [...]
All Web Design Resources is a Directory & Blog Full of Tools for Web Site Designers
All Web Design Resources Portal is a Web Site Design education directory with resources & articles for Graphic Designers, Web Developers, & Web Designers including a Web Design forum, blog, graphics software tips, web development resources, web programming tools, web design jobs, advice for new web designers about web design schools and education as
well as tips for freelance web design business owners, and much more.