Why u no alt text? 🫴

People often overlook adding alternative texts to images, and that’s problematic. This article explores why this happens, how to identify if you have this issue, and provides possible solutions.

Screenshot of a code snippet with an img tag - src='113742471123.jpg'

Why alt texts

Alternative texts are key for accessibility, as they describe visual content for visually impaired users and promote inclusivity across digital platforms. Alt texts are also useful when the image can’t be shown, if the download fails, and for SEO. Many readers might already know this and add alt texts to their images. However, this group is quite small.

How do I know? I did some research with a colleague and we found out that over 80% of the images in a specific social network didn’t have useful alternative texts.

What is a good alt text?

A good alt text is short but clear, providing a clear explanation of an image’s content and its context within the page. It should avoid redundancy, stay relevant, and, if necessary, include important text within the image. If you’re unsure what to write, refer to the Alt Decision Tree. There can be cases where an empty alt text is better than a descriptive one.

How to find out if you have a problem

You run websites and have access to their data or database? Take a look at the code and see if the alt texts look good to you. Do they exist at all? Find the ones that don’t, and see if you can identify patterns. In our research, the data was in Markdown in a database. Many alt texts contained just the name of the image file, were empty, or had generic texts like 'image' or 'screenshot'. Ask developers to run a query over all content with the identified patterns. If that is not possible, you could test the sites with Axe.

Why People Might Not Add alt texts

Possible Solutions

What else?

Did I miss something? Is there a silver bullet I am unaware of? Other explanations?

I’d be interested in your ideas and findings while analyzing alt texts in your network. ❤️

Portrait of Moritz Glantz

👋 Moritz Glantz is my name…

…and I am an Specialist for Web Accessibility and UX-Engineer with over 20 years of experience, by day and a podcaster by night.

I help organizations build accessible websites by offering talks about accessibility, workshops & trainings, accessibility reviews and developing strategies for developers and management.

If that sounds like you could use my help, let’s talk! 💬