Previous Message
Next Message

Rule of Thumb For Naming Classes/IDs?

Sent by Philippe Wittenbergh on 31 March 2011 14:02


On Mar 31, 2011, at 8:12 PM, Barney Carroll wrote:

> A simpler question, that has still yet to be answered, is why
> digit-led class or id identifiers are banned in the first place. Alan,
> Phil — any ideas?

HTML 4 has / had this:
http://www.w3.org/TR/html401/types.html#type-name
(linked from
http://www.w3.org/TR/html401/struct/global.html#adef-id )

Class is looser
http://www.w3.org/TR/html401/types.html#type-cdata

HTML5 doesn't seem to impose limits, afaict
http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#the-id-attribute

Philippe
--
Philippe Wittenbergh
http://l-c-n.com/






______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/
Previous Message
Next Message

Message thread:

Possibly related: