I use CamelCase or "propper case" for CSS classes; just a habbit (standard?) from OO programming; where classes (should) always be named using CamelCase.
And I use lower-case first letter + upper case for ID's, as they are unique for 1 HTML element only, they (IMO) represent a "variable", so again, I follow my OO habbits (standards?) of lowerCaseFirstLetter.

HTML is case-insensitive, in which case I _always_ use all lower case.

I use all lower case for CSS properties since the CSS specs define properties with lower case names, at least last time I read the CSS1 spec it did.

I feel strongly about following my OO practices and feel that it makes good sense in CSS too (CSS class is a class, CSS id is a variable - tidy), so I wont be changing any time soon =8-)

J

On 14/06/06, tee g.peng <[EMAIL PROTECTED]> wrote:
Good evening and good morning!

I remember reading an interesting thread about using  lowercase for
CSS element naming, but I can't seemed to find that thread from mail-
archive. Vaguely I remember it was something about xml wellformness -
before reading that thread, I used to use lower uppercase names, and
thought it was just one's preferences.

I have tried to pick up good habit since I read the thread. Was
reading CSS Mastery, Advanced Web Standards Solution by Andy Budd,
and it got me confused a bit. The author used lower uppercases for
examples throughout the entire book. I crossed check with other CSS
books I have, they all used lowercases and the only exception is in
More Eric Meyer on CSS, the last chapter, project 10, Designing in
the Garden, I said it was an exception because that project was for
CSS Zen Garden that the code could not be altered.

Not trying to stir up anything here. I simply want to learn the
correct way, since that the book titled itself 'Advance Web Standards
Solutions' therefor I would like to confirm what I learned from that
thread is the 'correct' way, or rather, there isn't anything right or
wrong as to how one names his CSS.

Thank you!

tee


******************************************************
The discussion list for  http://webstandardsgroup.org/

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



******************************************************
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