# [role="img"] and [role="image"] elements must have alternative text

Source: https://www.fixreports.com/issues/role-img-alt

WCAG 1.1.1 Non-text Content · Level A

An element presented as an image has no text alternative.

## What this rule checks
Ensure [role="img"] and [role="image"] elements have alternative text.

## Why it matters
WCAG 1.1.1 requires a text alternative for meaningful images.

## How to fix it
### On any website
1. Add aria-label to the element, or remove role="img" if it is decorative.

### On Shopify
1. Add aria-label to the element, or remove role="img" if it is decorative.

### On WooCommerce and WordPress
1. Add aria-label to the element, or remove role="img" if it is decorative.

## How to check the fix
- Re-scan the affected pages.

## Sources
- axe-core rule documentation (Deque): https://dequeuniversity.com/rules/axe/4.13/role-img-alt
- Understanding WCAG 1.1.1 (W3C): https://www.w3.org/WAI/WCAG22/Understanding/non-text-content
