On 20 Oct 2006, at 13:42:51, Anders Nawroth wrote:

Charles Roper skrev:
Can anyone point me to a reference (or simply post here) of characters
that are valid to use in HTML class attribute values.

Be aware that there are different rules for class names in CSS vs. HTML!

http://www.w3.org/TR/CSS21/syndata.html#q6

In 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.


Good point, Anders; Charles, please note this as a correction to the relevant part of my own response to your original question.

I knew I should have double-checked with the CSS spec :-(

Nick.
--
Nick Fitzsimons
http://www.nickfitz.co.uk/





*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to