Question 115Asked in DSSSB TGT Computer Science, 25 Jun 2023, Shift 1 (8:30 AM)

Which of the following is a valid syntax for the XML element in a DTD?

  1. A<!ELEMENT element-name category>
  2. B<!ATTLIST element-name attribute-name attribute-type attribute-value>
  3. C<#ELEMENT element-name category>
  4. D<!ENTITY entity-name "entity-value">
Show answerHide answer

Correct answer: (A) <!ELEMENT element-name category>

Explanation

In a DTD an element is declared as <!ELEMENT element-name category>. <!ATTLIST> declares attributes and <!ENTITY> declares entities.

From DSSSB TGT Computer Science PYQ, 25 Jun 2023, Shift 1 (8:30 AM)

This is question 115 of DSSSB TGT Computer Science PYQ, 25 Jun 2023, Shift 1 (8:30 AM). 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.