Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

CAPS in css/html ? ?

edited August 2006 in Vanilla 1.0 Help
what a pain to have to change them all back to lowercase
its better to use lowercase in style sheets and html tags


  • MarkMark Vanilla Staff
    Html tags should all be lowercase (And I believe they are so they can validate properly).

    CSS is a personal preference.
  • when you use caps in the stylesheet, for example Header, then the html tag div id="Header" will also be caps
    i'm sure it will still validate but it really should be lowercase to promote consistency accross the board,
    everyone has their way of course, like when you see people using PAGE.html or Page.html instead of page.html
  • XHTML requires all tag names and attributes to be lowercase. For CSS it is a personal preference, I personaly use camelCase in CSS. For the record -- class names and IDs ae case sensitive, so be careful there.
  • As long as it's consistent (and at least in the Vanilla core, it is), it's perfectly OK to use uppercase characters in class names and IDs.

    Whether you do depends on personal preferences (mainly whether you hate capital letters, underscores, or dashes the least)
This discussion has been closed.