Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
The value must be unique among all the IDs in the element's home subtree and must contain at least one character. The value must not contain any space characters.
There are no other restrictions on what form an ID can take; in particular, IDs can consist of just digits, start with a digit, start with an underscore, consist of just punctuation, etc.
ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_") , colons (":"), and periods (".").
www.w3.org/TR/html401/types.html#type-name
There is a specification. What is written in it should be supported by all browsers, the rest they can support at will.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question