HighDots Forums  

Naming conventions

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Naming conventions in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shapper
 
Posts: n/a

Default Naming conventions - 06-09-2008 , 11:28 AM






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

Reply With Quote
  #2  
Old   
Joost Diepenmaat
 
Posts: n/a

Default Re: Naming conventions - 06-09-2008 , 12:13 PM






shapper <mdmoura (AT) gmail (DOT) com> writes:

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/


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.