Flavours of XHTML

The XHTML standard is defined by three different DTDs. One DTD defines the strict XHTML core standard. There is also a 'transitional' DTD that is closer to the current HTML standard, and should be phased out over time. Finally, the third DTD covers frame features. Frame-building elements are treated separately because frames are used to create the infrastructure of a Web site, rather than a document.

Identifying XHTML documents

The three parts or versions of XHTML must include a DOCTYPE declaration, with a public identifier that matches one of the following strings:

-//W3C//DTD XHTML 1.0 Strict//EN
-//W3C//DTD XHTML 1.0 Transitional//EN
-//W3C//DTD XHTML 1.0 Frameset//EN

A system identifier is still needed to reference the ...

Get XML Companion, The, Third Edition 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.