Take the 2-minute tour ×  This morning I found a note on my desk
with some tips from a higher up developer who had been looking
over some HTML/CSS I had put together.  One of his suggestions
was for me to "stay away from context-based class and ID names
like 'left' or 'right.' Never use colors as names. Stick to
semantic names based on the content."  Is this valid advice?
Why?  share|improve this question Well, what happens when the
'left' class, applied to the sidebar, is supposed to be
somewhere else? Or the 'blue' classed div should be green? Then
you have to alter the markup, making it fragile to appearance-
only changes. –  Max Jul 18 '12 at 13:52 It is most definitely
valid advice. If you use a class name with a color or style in
it (like bold-blue-label{}) you have done something wrong,
choose a name like contact-form-label instead. Naming anything
based on where it is located is tricky but basically top-bar
should probably be changed to header and left-column should
probably be changed to sidebar or su