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?

  1. AIt defines the structure and data types of XML documents.
  2. BIt provides a list of external resources for an XML document.
  3. CIt specifies the styling rules for XML elements.
  4. 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

This is question 62 of Bihar STET Paper 2 Computer Science (Class 11-12) PYQ, 12 Sep 2023, Shift 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.

Asked in 2 papers