Re: urgent CSS question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux