Select which of the following is a correct description of DTD?
A.
It is a language for finding and extracting elements and attributes from XML documents.
B.
It defines the document structure with a list of legal elements and attributes.
C.
It is a language for transforming XML documents into XHTML documents or to other XML
documents.
D.
It is a non-XML syntax for describing the appearance of particular elements in a document.
Explanation:
DTD stands for Document Type Definition. It defines the legal building blocks of an XML document. It
is used to define the document structure with a list of legal elements and attributes. It can be
declared inline inside an XML document, or as an external reference to the document. It is written in
a formal syntax that explains precisely which elements may appear where in a document. It also
specifies what are the elements’ contents and attributes.
Answer D is incorrect. CSS stands for Cascading Style Sheets. It is a non-XML syntax for describing
the appearance of particular elements in a document. It is a straightforward language so no
transformation is performed. A CSS style sheet applies styles to the content that already exists and
does not change the markup of an XML document at all.