Understand the content
A screen reader’s browse or virtual cursor can encounter an image and announce its alternative alongside headings, prices, and other text.
Includes meaningful non-interactive content.Images · Concept
An informative image can be available to screen-reader reading navigation without receiving keyboard focus. Focus belongs to things people can operate.
The principle
Alternative text answers “What does this image contribute?” Keyboard focus answers “What can I operate?”
Two navigation models
Screen readers can move through headings, text, and images using reading commands. The Tab key moves through interactive elements such as links, buttons, and form controls.
A screen reader’s browse or virtual cursor can encounter an image and announce its alternative alongside headings, prices, and other text.
Includes meaningful non-interactive content.Keyboard focus visits controls that can be activated or changed. Static images and prices should not create stops.
Includes meaningful interactive elements.Interactive map
Switch views to compare what can be read with what can be operated. Then press Tab through the live card.
Do / Don’t
If an image performs no action, adding tabindex="0" creates a keyboard stop with nothing to operate. Alt text remains available without it.
The image has no link, button behavior, or keyboard action. The extra stop slows navigation and implies false interactivity.
<img src="boot.jpg"
alt="Tan hiking boot with red laces"
tabindex="0">The image remains in document reading order. Keyboard focus moves directly to the product title link and Add to cart button.
<img src="boot.jpg"
alt="Tan hiking boot with red laces">
<h3><a href="/boot">Harbor trail boot</a></h3>
<button>Add to cart</button>Focus rules
Do not repair a click handler with tabindex and key listeners when HTML already has an element whose semantics and keyboard behavior match the action.
Wrap the image in an <a> only when activating it navigates somewhere.
Put the image inside a <button> only when activating it performs an action.
Leave a static image unfocusable. Give it useful alt when informative or empty alt when decorative.
Quick test
tabindex on images and remove it unless a documented composite widget truly requires it.