Reading the XHTML DTDs

The best way to learn how to write DTDs is to study existing documents. Because we'll be working with the DTDs for XHTML beginning in Chapter 16, "Combining Custom Modules with XHTML," going through them now is a good learning exercise. The XHTML 1.0 Strict DTD is the smallest of the three and can be found online at

The beginning of the DTD has some informational comments, including copyright information, revision dates, and public and system identifiers. After the revision date, a large set of entities are defined. These deal with character mnemonics, names imported from various RFCs, generic attributes, and entities created to represent groups of element names. The element ...

Get XHTML by Example now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.