The purpose of a Document Type Definition or DTD is to define the structure of a document encoded in XML (eXtended Markup Language). For introductory material about XML, see the XML help page. It is possible to build and use files containing XML tags without ever defining what tags are legal.