---
title: "What is DTD (Document Type definition)?"  
description: "What is DTD (Document Type definition)?"  
author: "Vijay Shukla"  
published: 2013-04-02  
updated: 2020-09-17  
canonical: https://www.mindstick.com/interview/1697/what-is-dtd-document-type-definition  
category: "xml"  
tags: ["xml"]  
reading_time: 1 minute  

---

# What is DTD (Document Type definition)?

DTD stands for Document Type Definition; it defines the legal building blocks of an XML document. It defines the document structure with a list of legal elements and attributes. A DTD can be declared inline inside an XML document, or as an external reference

## Answers

### Answer by Vijay Shukla

DTD stands for Document Type Definition; it defines the legal building blocks of an XML document. It defines the document structure with a list of legal elements and attributes. A DTD can be declared inline inside an XML document, or as an external reference


---

Original Source: https://www.mindstick.com/interview/1697/what-is-dtd-document-type-definition

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
