Multiple choice technology web technology

  1. There must be one and only one document element. 2. Every open tag must be closed. 3. If an element is empty, it still must be closed. * Poorly-formed: * Well-formed: * Also well-formed: 4. Elements must be properly nested. * Poorly-formed: * Well-formed: 5. Tag and attribute names are case sensitive. 6. Attribute values must be enclosed in single or double quotes. Choose the best suitable answer

  1. A well-formed document should follow all the above rules

  2. A well-formed document may follow 1, 3, 4

  3. A well-formed document may follow 2, 4, 5, 6

  4. A well-formed document may follow 2, 3, 4 ,5

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

A well-formed XML document must satisfy ALL the listed rules: exactly one root element, all tags properly closed (including empty elements), proper nesting hierarchy, case-sensitive tag names, and quoted attribute values. Any violation makes the document malformed.