# Alt Text For Functional Images

> Functional images must have alt text that describes the control's function or destination.

Source: https://knowledge.evinced.com/web/web-validations/alt-text-for-functional-images

Functional images must have alt text that describes the control's function or destination.

A functional image acts as a control: it is the content of a link or a button. Its alt text needs to say what the control does or where it goes, not what the image looks like. If the alt describes the picture, for example “right arrow” or “magnifying glass”, instead of the action, screen reader users hear the control but cannot tell what it will do. The alt should name the function, such as “Search” or “Continue to checkout”.

## Pass Patterns

### Link image describes the destination

The alt says where the link goes, not what the icon looks like.

```html
<a href="/checkout">
    <img src="continue.png" alt="Continue to checkout" />
</a>
```

### Button image describes the action

The alt names what the button does.

```html
<button>
    <img src="search-icon.svg" alt="Search" />
</button>
```

## Fail Patterns

### Alt describes appearance, not function

“right arrow” describes the icon but not where the link goes.

```html
<a href="/checkout">
    <img src="continue.png" alt="right arrow" />
</a>
```

### Vague alt that does not state the action

“icon” tells the user nothing about what the button does.

```html
<button>
    <img src="icon.png" alt="icon" />
</button>
```

## WCAG techniques

### Sufficient techniques

-   [G82: Providing a text alternative that identifies the purpose of the non-text content](https://www.w3.org/WAI/WCAG22/Techniques/general/G82)
-   [H30: Providing link text that describes the purpose of a link for anchor elements](https://www.w3.org/WAI/WCAG22/Techniques/html/H30)
-   [H36: Using alt attributes on images used as submit buttons](https://www.w3.org/WAI/WCAG22/Techniques/html/H36)
-   [H37: Using alt attributes on img elements](https://www.w3.org/WAI/WCAG22/Techniques/html/H37)

### Failure techniques

-   [F30: Failure of Success Criterion 1.1.1 and 1.2.1 due to using text alternatives that are not alternatives (e.g., filenames or placeholder text)](https://www.w3.org/WAI/WCAG22/Techniques/failures/F30)

## ACT Rules

-   [Image button has non-empty accessible name](https://www.w3.org/WAI/standards-guidelines/act/rules/59796f/)
-   [Image accessible name is descriptive](https://www.w3.org/WAI/standards-guidelines/act/rules/qt1vmo/)

## Try It Yourself

### Using a screen reader

**New to screen reader testing, or need a refresher?**  
Review this article first: [Practical guides for using screen readers](https://knowledge.evinced.com/a11y-essentials/practical-guides-for-using-screen-readers)

1.  Load the page and open a screen reader.
2.  Navigate to the image-based control.
3.  Listen to how the control is announced.

**Expected results:** The control is announced with a clear action or destination, such as “*Search*” or “*Continue to checkout*”.

**Actual results:** The control is announced with unclear or visual-only text, such as “*icon*” or “*arrow*”.

### Inspecting the browser dev-tools

1.  Select the image-based button or link in your browser's dev tools.
2.  Check its computed accessible name in the Accessibility panel.
3.  Compare it with what the control actually does.

**Expected results:** The accessible name states the control's action or destination.

**Actual results:** The accessible name describes the image (for example, “arrow”) or is vague (for example, “icon”).

## FAQ

**How does this issue relate to 1.1.1 Non-text Content?**

SC 1.1.1 requires non-text content to have a text alternative that serves the same purpose. For a functional image, that purpose is the action it performs, so the alt must convey the function or destination. Alt text that only describes the image's appearance does not serve the equivalent purpose.

**Why is this issue marked as Moderate?**

This issue impacts usability rather than complete access. The control is still reachable, but its purpose may be unclear. That creates confusion for assistive technology users and can slow navigation or lead to incorrect actions.

**Why does this check require human review?**

Whether alt text correctly describes a control's function depends on what the control actually does, which a tool cannot determine. This check surfaces image-based controls so a reviewer can confirm the alt names the action or destination rather than the picture.

## Standards and Regulations

| Standard | Success Criterion | Reference |
| --- | --- | --- |
| WCAG 2.2 | [1.1.1 Non-text Content](https://www.w3.org/TR/WCAG22/#non-text-content) (A) | All non-text content that is presented to the user has a text alternative that serves the equivalent purpose, except for controls/input, time-based media, tests, sensory experiences, CAPTCHA, and decoration/formatting/invisible content. |
| EN 301 549 | [9.1.1.1 Non-text Content](https://www.etsi.org/standards/etsi-301-549) | Same as the WCAG text. |
| Section 508 | [1194.22(a)](https://www.federalregister.gov/documents/2018/01/18/2018-00712/section-508-standards-update#d22) | A text equivalent for every non-text element shall be provided (e.g., via “\`alt\`”, “\`longdesc\`”, or in-element content). |
| 508 Trusted Tester | [1.1.1-meaningful-image-name, 7.A](https://section508coordinators.github.io/TrustedTester/images.html#check-111-meaningful-image-name) | The accessible name and accessible description for a meaningful image provides an equivalent description of the image. |

## Personas impacted by this issue

-   [Screen Reader](https://knowledge.evinced.com/a11y-essentials/personas#screen-reader)
-   [Braille](https://knowledge.evinced.com/a11y-essentials/personas#braille)
-   [Voice Input](https://knowledge.evinced.com/a11y-essentials/personas#voice-input)
-   [Cognitive](https://knowledge.evinced.com/a11y-essentials/personas#cognitive)

## Learn More

-   [Writing Effective Text Alternatives for Images](https://knowledge.evinced.com/a11y-essentials/writing-effective-text-alternatives-for-images)

## Related Issues

-   [accessible-name](https://knowledge.evinced.com/web/web-validations/accessible-name)
-   [alt-text-for-informative-images](https://knowledge.evinced.com/web/web-validations/alt-text-for-informative-images)
