Multiple choice technology programming languages

Which statement is true?

  1. All the statements are true

  2. All XML elements must have a closing tag

  3. All XML elements must be lower case

  4. All XML documents must have a DTD

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

XML requires all elements to have a closing tag (or self-close like
). XML is case-sensitive but doesn't require lowercase. DTD is optional for XML - well-formed XML doesn't need a DTD. Only option B is universally true for XML.