Skip to content
BENIBIX Learn

Alt Text

Design♿ AccessibilityContent and Media

Also known as Alternative Text, Image Description, Alt Attribute

A few words that say what a picture shows. It is for people who cannot see it.

Think of it like

It is like telling a friend on the phone what a photo shows. You say what matters in it.

Example

Instead of alt="chart", Lucy writes: sales doubled from March to June. A screen reader user gets the point.

Why it matters

Without it, a blind user hears just image, or a file name. They miss the point.

Definition

Alt text is a short written description of an image, read aloud by screen readers and shown if the image fails to load. Good alt text says what the image means in its place, not just what it is. A chart's alt text gives its main finding. A purely decorative image gets an empty alt, so screen readers skip it.

Example code

html
<img src="dog.jpg" alt="A brown dog catching a ball in the park">
<img src="swirl.png" alt="">
The second picture is just for looks. Its empty alt tells screen readers to skip it.

Common mistake

Starting with image of. Screen readers already say image; get straight to what it shows.

Key takeaways

  1. 1
    Say what it means. In this place.
  2. 2
    Short. A sentence or so.
  3. 3
    Empty for decoration. alt="" skips it.

Compare