Lea de Groot wrote:
sime wrote:
However, I'm told that my code is therefore not XHTML compliant because of my use of uppercase. So who then is HTML4 relevant to?

I don't really understand the question.
As written, the css shown will work under HTML dtds (and XHTML transitional? I'm not sure as I never use it) but not XHTML strict DTDs.

No, it will not work under XHTML at all. The DOCTYPE is irrelevant, XHTML is case sensitive and uppercase element selectors will not match anything in XHTML. It will only work for text/html.

To make it work correctly for XHTML strict, you should change each tag name to lowercase.
Its a trivial change.

There's little point for authors to use that stylesheet, it is intended as a guide for browser implementors and was supposedly based on the default styles applied by browsers at the time. (Although there are still many differences between that stylesheet and real world browsers)

--
Lachlan Hunt
http://lachy.id.au/
******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to