alt attribute
The attribute on an <img> that gives a text alternative, read by screen readers and shown if the image fails to load.
In more detail
Automated tools can check that alt exists but not whether it describes the image well; that needs a human. Decorative images use alt="" so they are skipped.
Related terms
- accessibility — Designing and building products so that people with disabilities, including those who use keyboards, screen readers or magnifiers, can use them fully.
- axe-core — An open-source accessibility testing engine by Deque that checks rendered HTML against rules mapped to WCAG success criteria.
Taught in
- Automated Accessibility Testing: axe-core & Testing Library — Design Systems & Component Engineering