An introduction to document type definitions (dtds) in the context of xml documents. Dtds describe the structure of xml documents by defining elements, attributes, and entities. Xml documents must be well-structured and valid, with the latter requiring a dtd specification. The role of dtds, parsing xml documents, and examples of dtd syntax for various types of elements. It also touches upon names and namespaces, and the relationship between dtds and xml schemas.