Text alternatives play a crucial role in digital accessibility. In fact, the Web Content Accessibility Guidelines (WCAG) addresses alternative text in its very first guideline, “Non-Text Content.” This is a Level A success criterion, which means that content that fails the guideline cannot be considered reasonably accessible.
But what is a text alternative, exactly, and how can you provide effective alternatives that are truly useful for people with disabilities?
When you’re creating content for online audiences, you’re speaking to an extremely large audience. About 25% of U.S. adults live with some form of disability, and many conditions can affect sensory perception. When you provide alternatives for sensory-based media, text can be converted into different types of output to suit the user’s abilities.
For example, many people with vision disabilities use screen readers (software that converts text to audio or braille). If your website contains text alternatives for visual media, screen reader users will be able to enjoy your content. Likewise, people with hearing disabilities may prefer to read content rather than listen to it, and if someone doesn’t speak your website’s native language, they can use translation tools to convert text into their primary language.
Providing transcripts accommodates a wide variety of users. As a website owner, developer, or designer, it’s your responsibility to provide those accommodations.
Related: The 5 Most Common Website Accessibility Issues (And How To Fix Them)
Fortunately, writing alternative text is fairly straightforward. If any element on your website relies on the user’s vision or hearing, it needs a text alternative, with very limited exceptions (we’ll discuss those exceptions in a moment).
Examples of text alternatives for non-text content include:
With every type of text alternative, accuracy is important. Transcripts and captions should contain all important speech, sound effects, and musical cues from your media. Image alt text should include a clear description of the image in question without unnecessary details.
Related: 8 Common Image Alt Text Mistakes to Stop Making
If your website uses images that don’t provide context or meaning, those images don’t need alternative text. For example, many websites use dividers to accomplish a certain visual aesthetic.
Since dividers don’t change the context of the web page, they don’t need alt text — but you’ll need to use the null alt attribute to instruct assistive technologies to ignore these elements. Using the null alt attribute is not the same as having no alt attribute.
Here’s how to avoid other common mistakes when providing text alternatives for non-text content:
Finally, test your text alternatives before publishing your content. Make sure that they’re easy to find, useful, and accurate enough to provide users who have disabilities with an equivalent experience.
The Bureau of Internet Accessibility’s free website analysis can identify instances of missing text alternatives, along with other common accessibility barriers. However, remember that human judgment is key: No automated tests can judge the accuracy of your content, so you’ll need to manually review your work for the best possible results.
For more guidance, view our free digital accessibility resources or send us a message to connect with a subject matter expert.