DTD stands for Document Type Definition. It defines the structure and elements of an XML document. DTDs check if an XML document is valid by defining the grammar. They are used to create and manage large sets of shared documents. DTDs declare elements, attributes, entities, and define the document structure with content models. While DTDs were useful, more robust alternatives like XML Schema emerged.