DTD
Quick Summary
In computer science, a Document Type Definition (DTD) is a set of rules used to define the structure and elements of a document. DTDs are employed by markup languages like SGML and XML to specify what tags can be used and how they should be organized. This ensures consistency and allows software to correctly interpret and process the document's content. For example, a DTD might dictate that a document must have a title and that paragraphs can appear within table entries, but not vice versa. This enables parsing programs to validate document structure and other programs to prepare documents for display or indexing.123
Ask Britannica AI about this topic
Britannica doesn't have a full article on this topic, so we've curated a list of our relevant coverage.