Geeks With Blogs
Brian Schroer Don't Call Me Mort!
Technorati Tags:

 

CSS class names should usually be “semantic” (describing the meaning of the styled areas, e.g. “article-title”, “author-info”, “errror-message”, not “structural” (e.g. “left-side-navbar”, “small-title”).

…and they definitely shouldn’t explicitly describe the styling. I’ve seen a class names like “bold-red-12pt”. If you’re going to do that, you might as well just use inline font tags.

This article explains it much better than I can…

Posted on Tuesday, June 15, 2010 9:09 PM | Back to top


Comments on this post: I’m offended by your antisemantic views

# re: I’m offended by your antisemantic views
Requesting Gravatar...
I agree, but what would you name the class of a div that is the navigation that appears on the left side of the screen? "sidenav"? ...that is still structural.
Left by Mark on Jun 16, 2010 9:59 AM

Your comment:
 (will show your gravatar)


Copyright © Brian Schroer | Powered by: GeeksWithBlogs.net