I was about to add this as a comment to one of the other posts, but it increased slightly.
What is the main point that most people seem to be missing is the purpose of XHTML. One of the main reasons for developing the XHTML specification was to decentralize presentation-related tags in markup and defer presentation in CSS. Although this separation can be achieved using simple HTML, the specification does not contribute to this behavior.
Separation of meta-markup and presentation is an important part of the development of a “programmable network” and will not only improve SEO and access to on-screen readers / text browsers, but also make your site easier to analyze for those who want to access it programmatically way (in many simple cases, this may negate the need to develop a specific API or even just let client scripts do things like easily identify phone numbers). If your webpage complies with the XHTML specification, it can be easily moved using XML-related tools and things like XPath ... which are fantastic news for those who want to extract certain information from your site.
XHTML was not designed to be used on its own, but using many other technologies. It relies heavily on the use of CSS for presentation and provides the foundation for things like Microformats (whether you like them or hate them) to offer standard markup for presenting shared data.
Do not be fooled by a crowd that thinks that XHTML is insignificant and too overly restrictive and meaningless ... it was created with a goal that 95% of the world seems to be ignored / not known.
In any case, use HTML, but use it for what it is good for, and use the same approach when viewing XHTML.
Regarding parsing speed , I believe that the difference between actual documents between XHTML and HTML will be very slight. The compromise will only be explained by how you describe the document using the available markup. XHTML tags tend to be longer due to required attributes, proper closure, etc., but will not refuse the need for any presentation markup in the document itself. In this case, I think you are talking about comparing one type of apple with a completely different type of apple ... they are different, but they are unlikely to have any meaning (in terms of parsing and rendering) when all you want , is a healthy, tasty apple.
James Burgess May 15 '09 at 8:59 a.m. 2009-05-15 08:59
source share