That's just the way it's defined. Id's in HTML are comparable to variable
names in programming languages, which generally have similar restrictions.
>From the HTML spec:
ID and NAME tokens must begin with a letter ([A-Za-z])
and may be followed by any number of letters, digits
([0-9]), hyphens ("-"), underscores ("_"), colons (":"),
and periods (".").
http://www.w3.org/TR/REC-html40/types.html#type-name
Jon
> -----Original Message-----
> From: Marty Martin [mailto:[EMAIL PROTECTED]
> Sent: Friday, May 13, 2005 2:02 PM
> To: [email protected]
> Subject: [css-d] dumb question
>
> This may be a dumb question, but I noticed you can give an ID
> (and I assume also CLASS) a solely numeric value. If I start
> it with a alpha character then all is hunky dory, but I want
> it to be a number. What gives? Is there rationale for this?
>
> Just looking for an explanation if anyone knows, thanks!
>
> ie:
>
> div#01 { width: 100%; } == no good
>
> --
> Marty Martin
> Senior Web Developer
> ICONS, Inc.
>
> Internet Development | Marketing | Support
> e: [EMAIL PROTECTED]
> p: 540.343.8322 | f: 540.343.0691
> w: http://icn.net
>
> ______________________________________________________________________
> css-discuss [EMAIL PROTECTED]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by
> evolt.org -- http://www.evolt.org/help_support_evolt/
>
>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/