Document Type Definition is a set of markup declarations that define a document type for SGML- family markup languages. A DTD is a kind of XML schema.DTDs use a terse formal syntax that declares precisely which elements and references may appear where in the document of the particular type, and what the elements contents and attributes are. DTDs also declare entities which may be used in the instance document.XML uses a subset of SGML DTD.As of 2009 newer XML Namespace-aware schema languages have largely superseded DTDs. A namespace-aware version of DTDs is being developed as Part 9 of ISO DSDL. DTDs persist in applications which need special publishing characters such as the XML and HTML Character Entity References, which were derived from the larger sets defined as part of the ISO SGML standard effort