Skip to content
EntityQ212327· pop 32· linked from 141 articles

Document Type Definition

Sign in to save

Also known as DTD

set of markup declarations that define a document type for an SGML-family markup language

Wikidata facts

Show 4 more facts
Stack Exchange tag
stackoverflow.com/tags/dtd
file extension
dtd
media type
application/xml-dtd
Sources (4)

via Wikidata · CC0

~38 min read

Article

A document type definition (DTD) is a specification file that contains a set of markup declarations that define a document type for an SGML-family markup language (GML, SGML, XML, HTML). The DTD specification file can be used to validate documents.

A DTD defines the valid building blocks of an XML document. It defines the document structure with a list of validated elements and attributes. A DTD can be declared inline inside an XML document, or as an external reference.

Connections

Categories