HTML vs. XHTML
HTML (HyperText Markup Language) is the basic language and W3C standard of websites. The first official version was HTML 3.2 (1997) and the latest HTML 4.01 (1999). The XHTML (Extensible HyperText Markup Language) standard was developed (also by the W3C) to separate the content and design of websites. The first version was XHTML 1.0 (2000) and the latest XHTML 1.1 (2001). XHTML is the following language of HTML. In the XHTML code the style instructions are outsourced to a CSS (Cascading Stylesheeds) file. This makes it easier to change the style of the website later.
There are only a few differences between HTML and XHTML code. Now I will describe a few of them.
1. A valid XHTML document must start with a Document Type Definition (DTD). Please find all allowed DTDs in this list Recommended Doctype Declarations to use in your Web document.
2. A valid XHTML document must include at least the html,head,title and body element.
3. XHTML forces always, that a tag is being closed. For those tags, which does not have a closing element like the image tag (img), the the lates “>” will be changed to ” />”. Please note: There must be a space before the slash.
A valid XHTML image tag looks like:
-
<img src="image.jpg" alt="Image Title" />
Old and bad written HTML image tag:
-
<IMG SRC=image.jpg>
XHTML forces an alt attribute inside the image tag. The alt attribute is meant to be used as an alternative text if the image is not available, not as a mouse-over text. To show a mouse-over text on images or image-maps, use the title attribute, like this:
-
<img src="image.gif" alt="Image Title" title="Image Title" />
You must also write the tags and attributes in lowercases and do not forget the quotes for each attribute value.
4. This rule will also take affect to meta tags:
-
<meta name="description" content="Your Meta Description" />
5. input tags:
-
<input type="text" name="value_name" id="value_name" value="the_value" />
6. br tag:
-
<br />
7. hr tag:
-
<hr />
8. There are no short attributes allowed:
-
<td nowrap>Wrong Code</td>
-
<td nowrap="nowrap">Valid Code</td>
This should be all important rules for XHTML.

[...] developers HTML vs. XHTML (X)Html Developers TutorialHTML (HyperText Markup Language) is the basic language and W3C standard of websites. The first [...]
I think your blog is great. I found it on Yahoo. This will be a site that i come to regularly.
I found a great tips here. Thanks for your contribution for helping peoples looking for similar articles.
HTML vs. XHTML « Web Design « Developers Tutorial – great post, I think this covers most of the questions that I had about web design developers
Your topic HTML vs. XHTML « Web Design « Developers Tutorial was interesting when I found it on Wednesday searching for web design developers, it looks like you have some interesting content about web design developers what I was looking for
I’ve have done web design for 8 and have a few essential tips for everyone. First, do not use tiny fonts. This may be singing to the choir, but I can not tell you how many sites I come through with these simple problems. Oh and one other tip, Do not cloak links.
Thank you for that fantastic info! I will be sure to go through the rest of your blog blogposts
I found your entry interesting thus I’ve added a Trackback to it on my weblog
…