It defines the structure of an XML document. It is declared at the top of the XML document and defines the structure with a list of legal elements.
Ex. <! DOCTYPE emp
[
<! ELEMENT employee (name, emplid, designation)>
<! ELEMENT name (# PCDATA)>
<! ELEMENT empid (# PCDATA)>
<! ELEMENT designation (# PCDATA)>
]>