A Document Type Definition (DTD) defines the legal building blocks of an XML document. It defines the document structure with a list of legal elements and attributes.
DTD is Document Type Definition which gives the legal building blocks of an XML document. The document which has a DTD associated with it is a Valid XML Document.