On 30 March 2011 16:20, Lesley Lutomski <c...@islaywebdesign.co.uk> wrote: > On 30/03/11 16:09, Elli Vizcaino wrote: >> >> So I guess, in essence the answer is NO you cannot begin a class or ID >> name with numeric characters? > > Trip Adviser do it all the time and the W3 Validator throws an error, so > technically I guess you can but you shouldn't!
Clarification: markup will render fine with any ID or class attribute. CSS rules using ID or classnames beginning with numbers, or a double hyphen, will not be applied. This is a CSS parsing issue, not a markup or script one. On 30 March 2011 16:08, Philip Taylor (Webmaster, Ret'd) <p.tay...@rhul.ac.uk> wrote: > Very succinctly ? By the end of reading it, I was more confused > than when I started ! It even starts with a glaring error : > >> a name must start with an underscore (_), a dash (-), or a letter(a–z), >> followed immediately 1 by a letter or underscore You're right. The expression underneath that statement the link above it are correct and succinct. On 30 March 2011 16:08, Philip Taylor (Webmaster, Ret'd) <p.tay...@rhul.ac.uk> wrote: > the validator says "All is well"; I would trust the validator over > Stackoverflow any day ! Popularity can be a fallacious indicator, but so can authority over the specification. Practice is the only sure indicator. Following W3 spec to the letter is fairly limiting, since in practice browser implementations differ (from the specification and from each-other). Forgotten about IE6 already? ;) Regards, Barney Carroll barney.carr...@gmail.com 07594 506 381 ______________________________________________________________________ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/