Product detail
Harbor trail boot
Choose the appearance you want. The image supplies visual details not present in the product name.
Images · Concept
Alternative text is not a fixed inventory description. It replaces the information an image contributes in its current context.
The principle
Ask “Why is this image here?” before asking “What is in this image?”
Same pixels, different jobs
The same boot image can communicate appearance, highlight a construction detail, or add nothing beyond nearby text. Change the context and inspect how the appropriate alt changes with it.
Product detail
Choose the appearance you want. The image supplies visual details not present in the product name.
Decision path
Start with function and meaning. A visual inventory of objects is useful only when those objects are the information the page needs to communicate.
Name the destination or action. Functional and linked images are covered in a dedicated lesson.
Write a concise alternative that supplies the information needed in this context.
If adjacent text provides the equivalent, avoid repetition with alt="".
Use alt="" so assistive technology can ignore it. Decorative images are covered next.
Do / Don’t
Imagine the image failed to load and you were reading the page aloud. Say only what the listener needs at that point in the page.
“Image of product SKU HB-204 tan brown boot footwear JPEG.”
Filenames, stock keywords, and generic phrases add noise without replacing the image’s purpose.
<img src="HB-204.jpg"
alt="Image of product SKU HB-204 tan brown boot footwear JPEG">
“Tan hiking boot with red laces and a black treaded sole.”
The alternative is concise, specific, and useful for choosing this product.
<img src="harbor-boot.jpg"
alt="Tan hiking boot with red laces and a black treaded sole.">
Keep each layer honest
Use the right channel for each job. Alternative text replaces the image for people who cannot perceive it; other information may need to remain visible to everyone.
Visible context, interpretation, source, or commentary belongs in visible text or <figcaption>.
Photographer, license, and copyright details should not be hidden inside alt.
Charts and complex diagrams need a longer equivalent outside a short alt attribute.
Quick test