Question 62Asked in Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2+ 1 more paper
What is the role of a Document Type Definition (DTD) in XML?
AIt defines the structure and data types of XML documents.
BIt provides a list of external resources for an XML document.
CIt specifies the styling rules for XML elements.
DIt encrypts the content of an XML document
Show answerHide answer
Correct answer: (A) It defines the structure and data types of XML documents.
Explanation
A DTD defines the legal structure of an XML document: which elements and attributes are allowed, their order and nesting, so the document can be validated.
From Bihar STET Paper 2 Computer Science (Class 11-12) PYQ, 12 Sep 2023, Shift 2