Differences Between XHTML and HTML 4.0

HTML 4.0 is an SGML application that serves as the standard publishing language of the Web. As you know, XML was conceived as a way to use the power and flexibility of SGML without any unnecessary complexity. XHTML 1.0 is a modification of HTML 4.0 that plays by the more rigid rules of XML. Fortunately, most of the differences between XHTML 1.0 and HTML 4.0 are syntactic, which means that they don't dramatically affect the overall structure of HTML documents. Migrating an HTML 4.0 document to XHTML 1.0 is more a matter of cleaning and tightening up the code rather than converting it to a new language.

Although I'll cover the details of converting HTML documents to XHTML in the "Converting HTML Documents ...

Get XML Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.