Multiple choice technology web 2.0

Which statement is true?

  1. All XML documents must have a DTD

  2. All XML elements must be lower case

  3. All XML elements must be properly closed

  4. All the statements are true

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

XML requires all elements to be properly closed with matching end tags (or self-closed for empty elements). This well-formedness rule is mandatory for valid XML. DTDs are optional, and XML is case-sensitive but doesn't mandate lowercase.

AI explanation

Well-formed XML requires every element to be properly closed, either with a matching closing tag or as a self-closing tag, since XML parsers reject documents with unclosed elements. A DTD is optional, not mandatory, and XML element names are case-sensitive but not required to be lowercase, so those two claims are false, ruling out "all statements are true."