Converting HTML Documents to XHTML

Although it's great to dream about creating Web pages from scratch using XHTML, the reality is that you probably have HTML documents already that you will want to convert to XHTML at some point in the future. Fortunately, it isn't too difficult to bring HTML 4.0 documents up to par with the XHTML specification. You've already learned about the ways in which XHTML documents differ from HTML 4.0 documents. These differences are your guide to converting HTML to XHTML.

There are two approaches to converting HTML documents to XHTML documents:

  • Convert the documents by hand.

  • Convert the documents using an automated conversion tool.

The latter approach has the obvious benefit of automating the conversion process and ...

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.