DTD

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Updated category)
 
Line 1: Line 1:
 
{{FormatInfo
 
{{FormatInfo
 
|formattype=electronic
 
|formattype=electronic
|subcat=Metaformats
+
|subcat=Schema formats
 
|extensions={{ext|dtd}}
 
|extensions={{ext|dtd}}
 
|mimetypes={{mimetype|application/xml-dtd}}
 
|mimetypes={{mimetype|application/xml-dtd}}

Latest revision as of 16:30, 14 August 2017

File Format
Name DTD
Ontology
Extension(s) .dtd
MIME Type(s) application/xml-dtd
LoCFDD fdd000076
PRONOM x-fmt/315

A DTD (Document Type Definition) is the official means of defining the syntax of a variety of SGML, XML, or related-format document, though more recently XML formats are being defined using XML Schema Definitions instead because this latter format is cognizant of multiple namespaces.

As HTML was originally an application of SGML, DTDs were used. XHTML is an XML version of HTML and also uses DTDs, but HTML 5 is no longer defined based on such document types and instead has a more "pragmatic" spec based on defining the expected behavior of a properly implemented parser.

Documents using a DTD have a DOCTYPE declaration at their head (beneath an optional XML declaration in the case of XML), and sometimes these declarations include a URL which might resolve to an appropriate DTD file (but there need not be one directly referenced this way; document types can also be determined by matching a known public identifier).

[edit] Sample files

[edit] Utilities

[edit] Links

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox