[tutorial] Writing Alt Text
Jan. 31st, 2013 12:40 amWriting good alt text is an art, not a science. The same image can be described in different ways based on context, flow, and what aspects of the image you want to call to a listener's attention. The WHAT WG HTML Living Standard "4.8.1.1. Requirements for providing text to act as an alternative for images" has a collection of requirements for alt text, and WebAIM has a whole article on Appropriate Use of Alternative Text -- both of these are very useful resources! But it still takes practice to get really good at it.
So, let's practice, and see ways in which the same image in two different contexts might make you want to write the alt text differently.
Each of these sample images has two sets of text next to it: one formally-written piece (unless otherwise cited, it's from a relevant Wikipedia article), and a more casually-written sample that might be a blog post in which the image would appear.
Your task, should you choose to accept it, is to write relevant and useful alt text for the image in each context. Don't just look at the image and think in your head "oh, I'd do blah blah": actually write it out!
As you work, think about the differences in how you write the alt text in each context, and how different uses of the image make you want to call attention to different aspects of the image contents.
At the bottom of the page is a link to my version of the answers, with a brief explanation for each. I will reiterate that my answer is not necessarily everyone's answer! There are many, many ways to write alt text, and many people disagree as to which is the most useful.
Screenreader users: please note that I'm just using the alt text provided by Flickr's "get this HTML code" here, to avoid giving too many clues. Non-screenreader users: please don't just take Flickr's "get this HTML code" without altering it; it defaults to the title of the picture, which is usually fairly unhelpful for descriptive purposes!
I've turned comments off on this particular post, but they're open on the "answers" page, and if people would like to discuss their choices (or why they don't agree with my choices), feel free.
( Take the alt-text practice exercise! )
So, let's practice, and see ways in which the same image in two different contexts might make you want to write the alt text differently.
Each of these sample images has two sets of text next to it: one formally-written piece (unless otherwise cited, it's from a relevant Wikipedia article), and a more casually-written sample that might be a blog post in which the image would appear.
Your task, should you choose to accept it, is to write relevant and useful alt text for the image in each context. Don't just look at the image and think in your head "oh, I'd do blah blah": actually write it out!
As you work, think about the differences in how you write the alt text in each context, and how different uses of the image make you want to call attention to different aspects of the image contents.
At the bottom of the page is a link to my version of the answers, with a brief explanation for each. I will reiterate that my answer is not necessarily everyone's answer! There are many, many ways to write alt text, and many people disagree as to which is the most useful.
Screenreader users: please note that I'm just using the alt text provided by Flickr's "get this HTML code" here, to avoid giving too many clues. Non-screenreader users: please don't just take Flickr's "get this HTML code" without altering it; it defaults to the title of the picture, which is usually fairly unhelpful for descriptive purposes!
I've turned comments off on this particular post, but they're open on the "answers" page, and if people would like to discuss their choices (or why they don't agree with my choices), feel free.
( Take the alt-text practice exercise! )