DTC Commerce Growth Lab

DTC Commerce Growth Lab ·

Give a functional product image a text alternative that describes its action

Give a functional product image a text alternative that describes its action

An image used as a control needs a text alternative that communicates the control's purpose. A small shopping-bag symbol might open a cart, while a similar image elsewhere is only decoration. W3C's Non-text Content guidance distinguishes these roles. Review what the image does before choosing the alternative, rather than describing every graphic only by its visual shape.

Make an inventory of relevant images on one product journey. Identify which convey information, which act as controls, and which are purely decorative. For a functional image, record the actual action and the name exposed to assistive technology. The criterion says controls need a name describing their purpose; a purely decorative image should be implemented so assistive technology can ignore it.

For a fictional sofa page, an image button might remove one item from the cart. The useful alternative identifies that action and, where needed, which item it concerns. Calling it small gray cross describes appearance without explaining the operation. Check the real control result and context so the name is accurate and does not promise a different action.

Keep informative product imagery distinct. A photograph can need text that serves its informational purpose, while a nearby repeated flourish may add no information. The same graphic can require different treatment in different contexts. Ask the content and accessibility reviewers what the user needs from the particular occurrence rather than copying one alternative across the entire image library.

Test the resulting journey with appropriate assistive-technology review. Record the page, element, exposed name, and actual action. Review related control requirements separately, including keyboard operation and visible-label consistency where relevant. A purpose-based alternative is useful evidence for this question, without establishing that every other aspect of the purchase flow has been checked.

When comparing shop themes or product components, include functional images among the review tasks. Affiliate links may earn this site a commission. The practical result is a set of images whose information or actions remain understandable beyond their appearance, helping shoppers reach the intended product, cart, and checkout functions.

Sources and further reading

This is general information. Check the relevant authority or manufacturer for the rules, compatibility and terms that apply to your situation.

More practical guides