skip to content rich footer

stevenclark.com.au

subscibe to the StevenClark.com.au rss feed

How to Make Accessible Image Links (Redux)

The accessibility of image content on a website is a crucial part of best practice web design. When we think of accessibility the first thought in our head would generally be the translation of visual content into non-visual content. WCAG 1.0 Checkpoint 1.1 affirms that we need to provide a text equivalent for all non-text content (via alt or longdesc attributes). Similarly, the WCAG 2.0 Candidate Recommendation’s Success Criteria 1.1.1 implores that, bar several exceptions, all non-text content that is presented to the user has a text alternative that serves the equivalent purpose. Without a doubt, the accessiblity of non-visual content is a primary concern for website accessibility.

Two very good articles on WebAIM, the first Alt text and linked images and Appropriate Use of Alternative Text, provide a strong basis for creating accessible image links. Basically, whenever you use an image as the only content within a link you need to provide a text equivalent of the function of the link. The alt attribute should be used to show the function of the link (rather than a description of the image).

Like many people, it appears that I had made some wrong assumptions in the past about the correct way to mark up images as links. In my old scenario I was marking up a title on the surrounding link element while providing alternate text to describe the image. The reality is that screen readers ignore that title attribute on the link and, as Jared points out in one comment the title is only intended to be supplementary information anyway. So, naturally, using the link’s title isn’t enough.

On the other hand the last thing you should be doing is marking up every image with “Click Here” or “Links to…”. A reasonable approach might also be to write something like “Ellen, lithograph and etching by Linden Langdon (proceed to LindenLangdon.com)”.

The key to all of this is in the context of the situation. While alternate text can describe an image, well so can the surrounding page content! There’s a very good argument for providing empty alt attributes when the surrounding content makes it clear what the image is, too.

There are a lot of caveats, fringe cases and judgement calls involved in providing high quality alternate text. I know that in the last few months I’ve dramatically revisited my approach based on the way real world screen readers process the link’s title attribute, for example. Nobody is going to come up with a cut-and-dried scenario proof perfect approach to alternate text on images. Its fine that we’d all write these things in slightly different ways. But its very important that we provide them for images, and its important that on websites we incorporate them as consistently as possible.

Ten gazillion people won’t do it right but that’s also no reason to go down the HTML 5 route and suggest we make them bloody optional (read The Solution is a HTML 5 Apathetic Doctype to measure my attitude on that one). Alternate text is of benefit to people as it is when used correctly. As web authors its our responsibility to lift our game not the specifications job to dumb down. OK its time for a crumpet and a cup of tea. Good luck with it.

Update: 29 June, 2008
In the comments of Bruce Lawson’s recent post Is alt text necessary for photo sharing sites? I posed the question: what if an image could have relevant content meaning BUT still be a link. Or, what if an image of an art work had a valid alt you could use but it also linked to another website? Bruce’s recommendation was to use the destination because a screenreader will prefix it with “link”, so the obvious question to answer is “link to where?”

I expect that the example from earlier in this article – “Ellen, lithograph and etching by Linden Langdon (proceed to LindenLangdon.com)” – would be effective as well.

Update: 30 June, 2008
Further reading: The Alt and Accessibility by Mike Cherim

One Response to “How to Make Accessible Image Links (Redux)”

  1. Title Attributes on Links, Tooltips and Accessibility : StevenClark.com.au

    [...] « How to Make Accessible Image Links (Redux) [...]

Social Networking

Keep an eye out for me on Twitter

About the Author

Steven Clark Steven Clark - the stand up guy on this site

My name is Steven Clark (aka nortypig) and my passions are business, web development, photography and writing. I have an MBA (Specialisation) and a Bachelor of Computing from the University of Tasmania. Currently completing a Grad Dip in Journalism, Media & Communications.

Photography

My photography is at Steven Clark Studio and my regular photo blog presents an ongoing stream of latest images at Walk a Mile in my Shoes and I'm working on a long-term photography project called the King Island Project.

Recently Reviewed Books

Site Supporters

Hosted by Brett Drinkwater at Tashosting who is always there at the other end of my every inconvenient question and technical crisis. Brett's local community support for us over the last five years is greatly appreciated.

skip to top of page

Currently Reading

Ansel Adams: The Camera

As the first of three parts of Ansel Adams Photography Series, Ansel Adams: The Camera begins by discussing the idea of visualisation in relation to photography. Ansel Adams is a master of his craft; this series has sat on my backburner for some time. Book 2 in this series is The Negative and it's followed up by The Print. In them Ansel outlines his philosophy of photography rather than trying to lay down a set of rules. This first instalment is a technical book that explains the good old fashion film camera.