Which is the correct syntax of an empty element in XML?

14. Which is the correct syntax of an empty element in XML?

  1. <#element_name attribute1 attribute2...#>
  2. <element_name attribute1 attribute2.../>
  3. <element_name attribute1 attribute2…>
  4. <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.../>

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.