I know that XHTML tags and attributes are supposed to be written in lowercase
(i.e., head) when they are actually being used as tags within an XHTML
document (meaning between the 'less than' and 'greater than' symbols [or
whatever those symbols more technical names are]) but it seems that the
majority of XHTML coders have taken that rule and run with it by putting every
mention of XHTML tags in lowercase, such as in style sheet declarations or in
off-handed mentions in every day conversational writing. I know the following
is wrong within an XHTML document:
IMG SRC=picture.gif WIDTH=20 HEIGHT=20 ALT=Picture /
HR /
but it seems to me the following is perfectly acceptable in a style sheet
declaration:
IMG { border: none; }
HR { padding-top: 15px; }
It also helps me when reading a style sheet when mentions of X/HTML tags are in
uppercase while id and class names are lowercase, like so:
H2 #alternate { color: #0066FF; }
I, of course, know it's also fine to put:
h2 #alternate { color: #0066FF; }
but I have seen that type of formatting so often now that it looks like people
think they are holding tight to the 'no uppercase in XHTML' rule as though they
are fending off the XHTML police, when really it's not even relevant to style
sheets or in conversational writing, such as in, We need to have that header
wrapped in an H3 tag rather than in an H2 tag. Or is there really some
official prohibition against uppercase in CSS declarations that I just don't
know about?
Christian
___
Try the New Netscape Mail Today!
Virtually Spam-Free | More Storage | Import Your Contact List
http://mail.netscape.com
__
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/