Home »
MCQs »
XML MCQs
Which is the correct syntax of an empty element in XML?
14. Which is the correct syntax of an empty element in XML?
- <#element_name attribute1 attribute2...#>
- <element_name attribute1 attribute2.../>
- <element_name attribute1 attribute2…>
- <element_name attribute1 attribute2...></element_name>
Answer: B) <element_name attribute1 attribute2.../>
Explanation:
The correct syntax of an empty element in XML is:
<element_name attribute1 attribute2.../>