Archive for the ‘Accessibility’ Category

Using image tags (for style elements) in HTML is bad design

Tuesday, April 11th, 2006

Update 4/11/06: I’ve received some criticism on this post from people who assumed I was saying you should never use image tags in HTML. My bad for the misleading title, I’ve added to the title in parens to be more concise! For those that didn’t read the whole post, in the last paragraph I say that it’s fine to use HTML image tags for content, I just think it’s bad design to use image tags for style elements. Anyhow, thanks for all the feedback (postive and negative) and here’s the original post:

CSS offers us a lot of power to style and decorate our pages with images, however, replacing text with an image is one gap not well addressed by CSS such that you often see sites doing:

<a href=”/”><img alt=”Home” src=”home.gif”/></a>

which is obviously bad for 2 reasons:
(more…)