CSS Identifiers
CSS identifiers are the labels used in property names, keyword values, and at-rule names, as well as in element type
names, classes, and IDs within selectors. In the following example,
fieldset, border, and
none are all CSS identifiers:
fieldset {
border: none;
}
According to the CSS2 specification, they can contain the
characters a to z and 0 to 9, ISO 10646 characters (equivalent to Unicode)
U+00A1 and higher, the hyphen (-), and the underscore
(_); they can’t start with a digit, nor with a hyphen
followed by a digit. Identifiers can also contain escaped characters.
User-contributed notes
Add a note
To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.