Why XHTML?
Before getting into how XHTML is implemented and how it compares to HTML, it's worth asking this simple question: Why XHTML? The answer is quite simple and parallels the rationale behind creating XML in the first place.
Currently, the Web is a jumbled mess of hacked HTML code that has very little structure. Poor coding, browser leniency, and proprietary browser extensions have combined to create a Web that is extremely unstructured, which is a bad thing. I don't need to get into why this is a bad thing—every other chapter in this book is a testament to what can be done when documents have structure.
A logical answer to the HTML problem might be to convert everything to XML documents with style sheets that are used to render them. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access