How NOT to Write Alt Text

Wrong Way road sign

In the digital world, including alt text with images is often required, and it’s always strongly encouraged. Yet for the uninitiated, writing alt text can be intimidating and overwhelming.

What details do you describe? What do you omit? How do you decide what’s relevant to the reader’s understanding, and what’s not? It can seem easier to skip out on writing alt text for images, or to just avoid using images altogether. After all, who needs them?

What Is Alt Text?

Alt text, or alternative text, is descriptive text included with an image (or other visual content) that conveys the image’s “meaning.” This textual substitute makes images accessible to a wider audience, in part by allowing those using screen readers or other assistive technologies to understand the image’s significance and the information it conveys.

Additionally, alt text makes web pages more robust by providing necessary information to readers when an image fails to load, and by “translating” the image’s information into a medium that technical applications (like SEO) can understand.

Alt text is not just some box you need to check off when adding images or an annoying hassle that you ignore. Writing effective alt text is a skill that enables you to create effective and accessible web content, and while it can be intimidating to learn, it is more than worth the effort. 

As an alt text novice, I’ve written this short guide to help myself and others better understand how to write effective alt text, based on the US government’s Section 508 guide to alt text. However, unlike the Section 508 guide, I’m not here to tell you what to do; instead, here’s what you shouldn’t do!

How NOT to Write Alt Text

  • Describe everything in the image, using as many words as you need
  • Repeat information in the alt text that is included in the onscreen text to really hammer home your main talking points 
  • Write the alt text in a different language than the onscreen text (always keep folks guessing!)
  • Pro tip: Mark an image as “decorative” if you just don’t want to deal with writing alt text
  • Cram a bunch of keywords in there to improve your page’s SEO
  • Describe how the image looks, rather than worrying about describing what “information” is being conveyed by the image

This last point is tricky! Depending on the context, the information being conveyed by an image can vary wildly. Ask yourself: Why was this image included? What does it add to the onscreen text, or what does it exemplify? Then ignore all that, mark the image as “decorative,” and move on.

Some Paw-some Examples

To put things into practice, let’s look at some alt text examples for this relatable dog photo:

Dog with skeptical expression
Photo by Michelle Tresemer on Unsplash

What about this image is relevant to the onscreen text? Is it the dog’s breed or coloration? The action the dog is doing? The composition of the photo? The dog’s silly expression? Or is the image truly just decorative?

Remember: Context is key!

Context 1: A short biography in which I mention that the individual has a dog named Steve

  • Good alt text: “Steve”
  • Bad alt text: “A white and brown medium-hair dog wearing a black harness and looking over its shoulder at the camera”

Context 2: An article about alt text in which I refer to this image as “relatable”

  • Good alt text: “Dog with skeptical expression”
  • Bad alt text: “Alt text, accessibility, WCAG”

Context 3: An advertisement for a therapy dog event on a college campus

  • Good alt text: None! Mark the image as “decorative.”
  • Bad alt text: “Steve”

Your Turn!

Looking for more information on how to write effective alt text? Check out the following guides:

Have you encountered alt text that features one of the mistakes I’ve listed? What mistakes did I miss? Let me know in the comments!

Author: septimus

2 thoughts on “How NOT to Write Alt Text”

  1. I really enjoyed this article, especially because I’ve learned firsthand how the smallest details can cause the biggest headaches when building a website. My own blog post was about spending far too much time troubleshooting a website, only to discover that a filename was the problem. Between that experience and our accessibility evaluation assignment, I’ve realized how much these little details matter. I liked your point about thinking about why an image is there in the first place, because accessibility should be about making a website easier for people to use, not just checking another box.

  2. I really appreciate the care you took in describing and explaining alt text. For some, it can be hard to understand the importance (or even the point) of quality alt text, and you’ve done an excellent job addressing common questions/skepticism, explaining the who/what/where/when/why, and offering thoughtful prompts for the reader. Alt text is a good example of Accessibility improvements benefiting -everyone-.

    I think showing examples of good vs. bad alt text is really important, so I’m glad you included them (and with context, even!). Your friendliness and sense of humor come across well, too. +1000 points for including a dog named Steve.

Leave a Reply

Your email address will not be published. Required fields are marked *