April 12, 2007

Better markup

Filed under: CSS, Graphic Design, HTML, Web Design — Douglas T @ 9:35 pm

456 Berea Street has a nice post on Guidelines for creating better markup today. I the classitis suggestion the best.

Avoid classitis. Does every element you want to style with CSS have a class attribute? They almost certainly do not need to. Use descendant selectors instead.

I’ve been doing a lot with descendant selectors recently, and it’s amazing how much they can streamline the site maintenance process If they are crafted carefully. No more worrying about using the proper class in the proper context, content is formatted according to its’ context, and you don’t have to worry about it.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment