Multiple choice technology web technology

Which statement is true?

  1. XML elements must have a closing tag

  2. XML tags must be lower case

  3. XML elements must be properly nested

  4. XML attribute values must be quoted

Reveal answer Fill a bubble to check yourself
A,C,D Correct answer
Explanation

XML requires all elements to have closing tags (A) and be properly nested (C). Attribute values must be quoted (D). However, XML tags are case-sensitive but not required to be lowercase (B is false) - 'Name' and 'name' are different tags, but uppercase is valid. These rules ensure well-formed XML documents.

AI explanation

Well-formed XML requires every element to have a matching closing tag, elements must be properly nested (no overlapping tags), and attribute values must always be enclosed in quotes. XML tags are case-sensitive but there's no rule requiring them to be lowercase — and are just treated as different tag names, which is why that option is false.