XHTML

What is XHTML?

XHTML is a recasting of HTML in XML. After XML became a recommendation, the question arose: if we have XML, do we still need HTML since now anybody can design their own Web-delivered language? To answer this question, we held a two-day workshop in San Francisco in May 1998, and we came to the conclusion that, yes, there is still a need for HTML. There are large numbers of people who are happy with HTML and don't want to have to design their own language. Furthermore, there are millions of documents out there in HTML, and there are implicit semantics in HTML documents that can be useful (for instance, for search engines that can give more priority to text in <H1> elements).

Some online references for XHTML

New features in XHTML 2.0 draft

XHTML Document Structure

See XHTML Part 3: What's New at the O'Reilly Network.

In August 2001, W3C published A tutorial on XHTML Modules and Markup Languages. This tutorial explains how to create XHTML Family modules and markup languages, based on Modularization of XHTML.

XHTML documents must reference one of the three XHTML DTDs: Strict, Transitional, or Frameset. The XHTML DTDs are currently approximations of the HTML 4.0 DTDs. Since XHTML is still a W3C working draft, it may be modified before XHTML becomes a W3C recommendation. You can convert your HTML documents to XHTML at O'Reilly & Associates XHTML conversion using Tidy. There is a good tutorial at W3Schools XHTML School
Here is an overview of some of the new rules; for a more complete breakdown, read the O'Reilly & Associates XHTML (Extensible Hypertext Markup Language) article by Peter Wiggen

Clean up your Web pages with HTML TIDY: http://www.w3.org/People/Raggett/tidy/ . This can also be run online, and a corrected, formatted file is returned.

Validate XHTML code at the W3C validator (remember to have the correct DTD statement on the first line of the document!). Recommend putting a link to http://validator.w3.org/check/referer on your web page

New features in XHTML 2.0 draft

Valid HTML 4.01!  Valid CSS!