On 22/5/09 13:02, Michael A. Peters wrote:
If I recall - it is illegal to end a css class name is a number.


Those are actually id names not class names, but it's not illegal in either case.

HTML "id" attributes must follow this:

http://www.w3.org/TR/html401/types.html#type-id

XML "id" attributes must follow this:

http://www.w3.org/TR/REC-xml/#NT-Name

The "class" attribute is a CDATA list:

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

Pretty much the only thing illegal in a classname is whitespace.

You may be thinking of the restriction that HTML/XML "id" attributes may not /begin/ with a number.

--
Benjamin Hawkes-Lewis

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to