Truly Semantic Classes and Ids

Just a little thought before leaving for work. How funny would it be if we used truly semantic classes and ids in our XHTML? Instead of pretending it’s a “container” or “event-holder” or whatever other text we use to try to fool ourselves into semantic meaning, what if we were truly honest about the role that element was playing? For example:

  • im-no-css-jedi
  • because-multiple-background-isnt-implemented
  • ie-wont-clear-this-damn-thing
  • i-can-hang-another-background-off-this
  • bottomless-pit-for-my-dom-wickedness
  • should-have-been-a-list
  • because-ive-never-heard-of-fieldset
  • must-have-rounded-corners\
    I think it’ll catch on. Got more?

By Kevin Lawver

Web developer, Software Engineer @ Gusto, Co-founder @ TechSAV, husband, father, aspiring social capitalist and troublemaker.


  1. I used as class of “ie-fix” in a recent project. I think that was, in fact, an abbreviated “ie-wont-clear-this-damn-thing”.

Comments are closed.