Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Naming conventions

Question posted by: shapper (Guest) on June 27th, 2008 07:19 PM
Hello,

In my HTML I name the Ids always with Capitalized first letter in each
word:

Intro, LeftContent, ...

I do the same with the CSS:

Intro, LeftContent, BlueParagraph, ...

I see other variations like using _ between each word. Or capitalizing
only the second word and forward.

What do you usually do? Is there a more common way than others?

Thanks,
Miguel
Joost Diepenmaat's Avatar
Joost Diepenmaat
Guest
n/a Posts
June 27th, 2008
07:19 PM
#2

Re: Naming conventions
shapper <mdmoura@gmail.comwrites:
Quote:
Hello,
>
In my HTML I name the Ids always with Capitalized first letter in each
word:
>
Intro, LeftContent, ...
>
I do the same with the CSS:
>
Intro, LeftContent, BlueParagraph, ...
>
I see other variations like using _ between each word. Or capitalizing
only the second word and forward.
>
What do you usually do? Is there a more common way than others?


I'm lazy; i like lisp-style-names. No shift keys to press, and much
easier to read than javaStyleNames.

I don't really know or care what's popular.
http://en.wikipedia.org/wiki/Sturgeon's_law

--
Joost Diepenmaat | blog: http://joost.zeekat.nl/ | work: http://zeekat.nl/

 
Not the answer you were looking for? Post your question . . .
189,798 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
  • Didn't find the answer you were looking for?
    Post Your Question
  • Top Community Contributors