HTML vs. XHTML
vs
XHTML 1.0 is a reformulation of HTML 4.0. What this really means is that learning XHTML is basically the same as learning HTML. The main difference is a few simple rules - as XHTML is more strict than standard HTML.
[1] Stricter adherence to the HTML specification
Many browsers are very lax in how they interpret HTML. This leads to incongruities in how the pages are displayed, and XHTML doesn’t allow that. The best way to correct this is to use an XHTML validator such as HTML Tidy.
[2] Write well formed documents
What this generally means is avoiding overlapping elements. The following nested code is acceptable: <p>Paragraph <em>emphasized</em></p> because the <em> tag is opened and closed within the <p> tag. However, this is not allowed: <p>Paragraph <em>emphasized</p></em> because the <em> tag overlaps the <p> tag.
[3] Write tags and attributes in lowercase
XHTML is a case-sensitive markup language, so <LI> and <li> are potentially two different elements.
[4] End tags are required
In HTML, some tags which actually contain elements do not require the end tag.
The most common of these is the <p> tag. XHTML requires that the </p> tag be used. For singleton tags, such as <br> you should include a trailing slash in the tag itself, e.g. <br />
[5] Attributes must be quoted and include values
What this means is that non-quoted attributes such as <table border=3> are invalid. And attributes which used to stand alone, must now be written as name=”value” pairs. For example <br noshade=”noshade” />
Tags: atributes, div, elements, HTML, Programming, table, tags, w3c, Web, web languages, world wide web consortium, XHTML
October 24th, 2007 at 10:47 am
Thanks a bunch!
October 25th, 2007 at 3:18 pm
simple but quality, thanks!%
October 25th, 2007 at 3:54 pm
Looking for information and found it at this great site
October 26th, 2007 at 10:36 pm
This is a great tutorial thanks!
October 26th, 2007 at 11:03 pm
simple but quality, thanks!c
October 27th, 2007 at 9:36 pm
rush soma
October 28th, 2007 at 10:44 am
This is a great tutorial thanks!d
October 30th, 2007 at 2:08 pm
Excellent web site I will be visiting often.E
October 30th, 2007 at 2:08 pm
You have an outstanding good and well structured site. I enjoyed browsing through it.
October 30th, 2007 at 3:47 pm
Thank you!
October 31st, 2007 at 1:27 am
Great site!1
October 31st, 2007 at 7:09 pm
Thank for making this valuable information available to the public.d
November 2nd, 2007 at 2:58 pm
Thanks bro! Real good work!y
November 3rd, 2007 at 1:48 am
Really perfect!i
November 4th, 2007 at 2:28 pm
This is a great tutorial thanks!u
November 4th, 2007 at 3:07 pm
Very good site! I like it! Thanks!i
November 4th, 2007 at 3:41 pm
Very effective. Thanx.a
November 4th, 2007 at 3:55 pm
This is a great tutorial thanks!
November 14th, 2007 at 9:20 pm
Thank you for you work! Good Luck.
November 27th, 2007 at 11:23 pm
This site is really superb!!! Thank you for you work! Good Luck