Re: [PHP] Re: sloppiness & stupidity

[email protected] ("Michael A. Peters")
Newsgroups php.general
Message-ID <[email protected]>
Robert Cummings wrote:

>> Ash:
>>
>> As I understand it and is my experience, that is true -- a stand-alone 
>> HTML attribute should be equal to itself, such as selected="selected", 
>> or more specifically selected="SELECTED".
> 
> How is that MORE specific? XHTML is like a cross-section of XML and 
> HTML. It is case sensitive, so using an uppercase value in this context 
> is LESS specific.

I always do lower case and it validates (both as html 4.01 and xhtml 
1.1) but only the element and attribute names must be lower case.

attribute values do not need to be lower case. Maybe they do in this 
case, I haven't tried validating selected="SELECTED" - but in general, 
the case sensitive nature only applies because the DTD is case sensitive 
and upper case element/attribute names are not defined in the DTD.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.