Multiple choice

How many DTD can a document have?

  1. 0

  2. 1

  3. 2

  4. More than 4

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A well-formed XML or SGML document can have exactly one Document Type Definition (DTD) declaration. The DTD defines the structure, elements, and attributes allowed in the document, and a document references only one DTD for validation.