Which of the following rule is needed to be followed while declaring the XML…

2024

Which of the following rule is needed to be followed while declaring the XML (Extensible Markup Language) elements name?

Answer: C. Name must not start with the letters XMLAn XML element name must not start with the letters XML in any case combination. XML names also cannot start with a digit and cannot contain spaces. Therefore…

  1. A.

    Name must start with a number

  2. B.

    Name can contain spaces

  3. C.

    Name must not start with the letters XML

  4. D.

    Name cannot contain letter, numbers and other characters

Attempted by 345 students.

Show answer & explanation

Correct answer: C

An XML element name must not start with the letters XML in any case combination. XML names also cannot start with a digit and cannot contain spaces. Therefore the valid rule among the options is that the name must not start with XML.

Explore the full course: Rssb Basic Computer Instructor

Loading lesson…