Alt Text vs Accessible Name
Alt text describes a picture. An accessible name is what a screen reader calls any control. When a picture is the only thing inside a link or button, its alt text becomes that control's name.
Alt Text
A few words that say what a picture shows. It is for people who cannot see it.
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.
Accessible Name
The name a screen reader says for a control, like Search or Close.
An accessible name is the name a screen reader says for a control, like Search for a search button. It most often comes from the text you see, the field label, or a picture's alt text. When there is no text to see, as on an icon button, it can be added with an ARIA label. A control with no name is read as just button. That tells people nothing.
In one line
- Alt Text
- A few words that say what a picture shows. It is for people who cannot see it.
- Accessible Name
- The name a screen reader says for a control, like Search or Close.