document type definition (DTD) A set of Extensible Markup Language (XML) elements and attributes that defines a schema describing the structure of an XML document. Related terms attribute, element, Extensible Markup Language (XML), schema Contrast with document object model (DOM), structured content