A code or character set added to the beginning of a SGML document which describes the elements of the document and the structure of those elements. DTD allows for the rapid and uniform retrieval of documents from databases. See Standard Generalized Markup Language.