Document Type DECLARATION vs. DEFINITION

Just to make things confusing, there are two things for which you could use the abbreviation "DTD". The document type declaration is everything between the string <!DOCTYPE and the matching >. It contains the Document Type Definition, which is what is abbreviated "DTD". When people talk about the Document Type Declaration, they usually say "doctype declaration" for short, which while not official, is certainly clear.

Back-link to spec

Copyright © 1998, Tim Bray. All rights reserved.