Alt Text Playground

The right alt depends on the image's ROLE, not its content. Write the alt in context, pick its role: see what the screen reader reads, what the browser draws…

Why it matters

Every <img> without the right alt = a message lost for screen reader users, and the alt is also what shows when the picture fails to load. A wrong alt (a long description on a decoration, or alt="" on key information) is as bad as a missing one. It is the most common accessibility audit finding.

The key idea

No alt is good everywhere: the right one depends on the image’s role

Common mistakes

Try it in this playground