Nick Fitzsimons wrote:
On 20 Oct 2006, at 13:42:51, Anders Nawroth wrote:
Be aware that there are different rules for class names in CSS vs. HTML!

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

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 :-(

No, you were (almost) right the first time, without checking the CSS spec. Even though a class selector may have limitations with which characters it can use directly, escape sequences allow the use of absolutely any character at all. So, if you have a need to use such characters, then you can do so with too much difficulty.

Back to the original question, there are exceptions to which characters you can use, such as control characters and, depending on which quotes you've used around the attribute value, single or double quotes.

e.g. class="..."..." or class='...'...'

(Note: ' is XHTML (or other XML) only, not HTML 4, and is not supported by IE)

--
Lachlan Hunt
http://lachy.id.au/


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

Reply via email to