Which statement about XML is true?

  1. Elements may nest but not overlap

  2. Quoting attributes is optional

  3. Elements may have multiple attributes with the same name


Correct Option: A

AI Explanation

To answer this question, you need to understand the characteristics and rules of XML (eXtensible Markup Language).

Option A) Elements may nest but not overlap - This option is correct. In XML, elements can be nested within each other, but they cannot overlap. This means that one element cannot start before another element ends.

Option B) Quoting attributes is optional - This option is incorrect. In XML, attributes must be quoted using either single quotes (' ') or double quotes (" "). Quoting the attributes is mandatory.

Option C) Elements may have multiple attributes with the same name - This option is incorrect. In XML, each attribute within an element must have a unique name. Multiple attributes within the same element cannot have the same name.

The correct answer is A) Elements may nest but not overlap. This option is correct because it accurately describes the nesting behavior of XML elements.

Find more quizzes: