XHTML documents are backward compatible with older, non-XHTML compliant web browsers.
Instead of sloppy HTML tags, your pages will now contain XML tags that are always properly closed and nested correctly
You can see that the XHTML version of the code above has a <p>, <b>, and then a <u> tag.
These tags are closed in the reverse order that they were created in: </u>, </b>, and lastly </p>.
All tags must be closed in this way for the XHTML document to be considered valid. |