Naming conventions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • shapper

    Naming conventions

    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

    #2
    Re: Naming conventions

    shapper <mdmoura@gmail. comwrites:
    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.or g/wiki/Sturgeon's_law

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

    Comment

    Working...