lower-case colour values? (was RE: [thelist] <option value= > Specifying a Font Face)

Mark Howells mark at mountain.ch
Fri Mar 15 03:04:01 CST 2002


>>> color values should be in lower-case
>>
>> is there a specific reason somewhere that says this is
>> the "right" way or recommended way?
>
> Hm, I thought I'd read somewhere that as of HTML 4.01 we were supposed to
> make all of our tags and attributes lower case.

Attribute values don't have to be lower case, otherwise input values would
all have to be lower case.

Valid: <input id="myname" type="text" value="Mark Howells" />
Invalid: <INPUT ID="myname" TYPE="text" VALUE="Mark Howells" />

Colours in CSS can be defined in upper or lower case for hex values (not
sure about colour keywords).

Regards
Mark Howells
<http://www.mark.ac/evl/>




More information about the thelist mailing list