Dictionary entry

DTD

proper nouncomputingtechnical

Last updated

UK/ˌdiː tiː ˈdiː/
US/ˌdiː tiː ˈdiː/

Meanings

  1. proper nounpropercomputingtechnical

    A set of rules that says which elements and attributes an XML or SGML document may contain and how they may be arranged.

    Grammar: Used as a singular name for the rule set; you normally write it with no article: 'declared in DTD', not 'in a DTD' when you mean the standard itself.

    Patterns

    • define something in a DTD
    • declare an element in a DTD
    • validate a document against a DTD
    • a DTD file

    The team wrote a DTD that lists every allowed tag in the order they may appear.

    Before the parser will accept the file, the DTD must declare the 'price' attribute.

    She opened the DTD and added a new element for customer comments.

  2. proper nouncountablecomputingtechnical

    A file containing such rules, used by software to check whether a document is valid.

    Grammar: Here it works like an ordinary countable noun, so 'a DTD' and 'two DTDs' are both fine.

    Patterns

    • a DTD file
    • load a DTD
    • an external DTD
    • point to a DTD

    The validator loaded the DTD from the same folder as the XML file.

    If the DTD is missing, the program still reads the document but cannot check it.

    They keep one DTD for invoices and another for delivery notes.

Word forms

pluralDTDs

Common combinations

an external DTD
An external DTD is stored in its own file and shared by several documents.
an internal DTD
For such a short file, an internal DTD inside the document is enough.
validate against a DTD
The tool can validate the feed against a DTD before publishing it.
define an element in a DTD
You define an element in a DTD by giving its name and what it may contain.
a DTD file
He saved the rules as a DTD file and sent it to the other developers.
the DTD syntax
The DTD syntax looks old-fashioned next to modern schema languages.

Synonyms and how they differ

schema
A more general word for a set of rules describing a document's structure; modern XML work often uses a schema language instead of a DTD.
document type definition
The full form of the same idea, used in formal writing and in the first mention of the term.

Word family

SGML proper noun
The older markup language in which the DTD idea was first developed.
XML proper noun
The markup language that most DTDs today describe.
parser noun
The program that reads a document and, with a DTD, checks whether it is valid.

Commonly confused: DTD or HTML? DTD or database?

DTD vs HTML

HTML is a particular markup language for web pages, while a DTD is a set of rules describing what a document of some markup language may contain.

DTD vs database

A database stores data in tables or records; a DTD does not store content, it only states which structures are allowed.

Practice

Which sentence uses DTD correctly?

Make it your own

Write a sentence using “DTD”, then check it and compare it with the examples above.

Your sentence stays on this page and is not sent anywhere.

Explore more words