Multiple choice technology web technology

Which is not a correct name for an XML element?

  1. <7lastname>

  2. <lastname>

  3. <last name>

  4. <last_name>

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

XML element names must follow strict naming rules. They cannot start with a number (7lastname is invalid) and cannot contain spaces (last name is invalid). Valid names like lastname and last_name follow the rules: starting with a letter or underscore, and containing only letters, digits, hyphens, underscores, or periods.