Question 7881 – Theory-of-Computation
April 16, 2024NTA UGC NET Dec 2023 Paper-1
April 16, 2024NVS PGT CS 2017 Part-B
| Question 3 |
An element in an XML DTD having no content is known as.
| unrestricted element | |
| Container element | |
| Empty element | |
| Null element |
Question 3 Explanation:
Empty elements are declared with the category keyword
EMPTY:
&l; !ELEMENT element-name EMPTY >
Example:
< !ELEMENT br EMPTY >
XML example:
< br / >
EMPTY:
&l; !ELEMENT element-name EMPTY >
Example:
< !ELEMENT br EMPTY >
XML example:
< br / >
Correct Answer: C
Question 3 Explanation:
Empty elements are declared with the category keyword
EMPTY:
&l; !ELEMENT element-name EMPTY >
Example:
< !ELEMENT br EMPTY >
XML example:
< br / >
EMPTY:
&l; !ELEMENT element-name EMPTY >
Example:
< !ELEMENT br EMPTY >
XML example:
< br / >
