> >From the W3C CSS 2 spec [0]:
>
> "In CSS2, identifiers  (including element names, classes, and IDs in
> selectors) can contain only the characters [A-Za-z0-9] and ISO 10646
> characters 161 and higher, plus the hyphen (-); they cannot start with a
> hyphen or a digit. They can also contain escaped characters and any ISO
> 10646 character as a numeric code (see next item). For instance, the
> identifier "B&W?" may be written as "B\&W\?" or "B\26 W\3F"."

And from W3C CSS2.1 spec [1]  (which should be preferred, despite
confusing status):

CSS 2.1, identifiers  (including element names, classes, and IDs in
selectors) can contain only the characters [A-Za-z0-9] and ISO 10646
characters U+00A1 and higher, plus the hyphen (-) and the underscore
(_); they cannot start with a digit, or a hyphen followed by a digit.
Only properties, values, units, pseudo-classes, pseudo-elements, and
at-rules may start with a hyphen (-); other identifiers (e.g. element
names, classes, or IDs) may not. Identifiers can also contain escaped
characters and any ISO 10646 character as a numeric code (see next
item). For instance, the identifier "B&W?" may be written as "B\&W\?"
or "B\26 W\3F".

Notably, underscore is allowed too.

[1]http://www.w3.org/TR/CSS21/syndata.html


Regards,
Rimantas
--
http://rimantas.com/
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to