DTD stands for Document Type Definition. It defines a leading building block of an XML document. It defines:
1) Names of elements
2) How and where they can be used
3) Element attributes
4) Proper nesting