Waffle

« Ever been caught rasterbating? | Home | This Old House »

Why it’s a bad idea to name Classes and ID’s based on presentation.

Behold the classnames in these pages and note that the class subHeadingGreen defines neither a heading or anything green. The class subHeadingBlue defines neither a heading or anything blue and while the class copyBoldBlue does render bold (currently), it’s colour is in fact black (at the moment). Do I need to explain it?

Viewing the source of these pages you’d think they we created a few years ago, they weren’t. Someone wrote this markup in 2005.

Browse Happy logo