After corresponding with Hixie about an unrelated matter, I decided to rework the site and remove as many unnecessary div and span tags as I could. I’m sure that the ones I left Hixie would still think unnecessary, but at least I’m satisfied for the night. It was downright embarassing before, especially in light of my earlier rants on the subject.
To emphasize what has been said elsewhere, div and span tags should be used sparingly and only when no other tag will do. Currently, they are often abused in much (X)HTML. There were places before the great sword Revision approached that I found things like:
<div class="foo"><h3>Augustus Caesar Omnibus Exultavit</h3></div>
No lie. I am so shocked and embarassed. Of course, it’s really all Michael’s fault.
Update: I do not feel nearly so bad now. Looking at Hixie’s site, I note many div and span tags. Mostly done where they are truly necessary. But I did note this interesting bit of code:
<a href="http://example.com/index.php?reallyLongQueryString" title="Cute Name for a Referrer">1</a>
I feel so validated now, I can’t tell you.
The URL to trackback this post is:
Copyright © 2002–2011 Kevin Robert (Basil) Fritts, all rights reserved.