Multiple choice technology web technology

Which of the following statements is not true?

  1. Names cannot start with a number or punctuation character

  2. Names cannot start with the letters xml (or XML, or Xml, etc)

  3. Names can contain spaces

  4. Non-English letters like éòá are perfectly legal in XML

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

XML names cannot contain spaces - this violates XML naming rules. Spaces are not allowed in element or attribute names, though they are valid in content values. Names must start with a letter or underscore, and can contain letters, digits, hyphens, underscores, and periods.