Multiple choice technology web 2.0

XML attribute values must always be enclosed in quotes

  1. True

  2. False

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

XML syntax rules strictly require all attribute values to be enclosed in either single or double quotes. Unlike HTML, omitting these quotation marks violates the well-formedness rules of the language, which causes XML parsers to fail and report syntax errors when reading the document.

AI explanation

To answer this question, you need to understand the syntax of XML.

In XML, attribute values must always be enclosed in quotes. This is to ensure that the attribute values are treated as strings and can include special characters or spaces.

Therefore, the correct answer is:

A) True - This option is correct because XML attribute values must always be enclosed in quotes.