# Image Alt

> Images must include meaningful alt text that conveys their purpose or be marked as decorative.

Source: https://knowledge.evinced.com/web/web-validations/image-alt

Images must include meaningful `alt` text that conveys their purpose or be marked as decorative.

Every image requires an alternative text commonly called alt text that gives people who cannot see the image equivalent information. Screen reader users rely on this text to understand the page, and search engines and voice interfaces also use it. Decorative images should be ignored by assistive technology so they do not add noise. However, alt text must always be written for the situation in which the image appears. Describe only the information the user needs at that point in the journey. The same photo might be “*Company founder Jane Doe*” on an About page, simply “*Jane Doe*” beside a captioned quote, or omitted (`alt=""`) if the image is purely decorative in a banner. Match the wording to the image’s role instead of listing every visual detail.

## Pass Patterns

### An alt text for an “informative” image

The alt text succinctly describes the image’s content.

```html
<img src="chickadee.jpg" alt="A black-capped chickadee perched on a snowy branch with fluffed feathers." />
```

### An alt text for a “functional” image

An image that is the only content of a button, with `alt` text that describes the button's action.

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

### A “decorative” image

Plainly decorative image hidden from assistive technology.

```html
<img src="flourish.svg" role="none" />


<img src="swoosh.svg" alt />


<img src="whirl.svg" alt="" />
```

## Fail Patterns

### No text alternatives

Meaningful image with no `alt` attribute.

```html
<img src="chickadee.jpg" />
```

## WCAG techniques

### Sufficient techniques

-   [H37: Using alt attributes on img elements](https://www.w3.org/WAI/WCAG22/Techniques/html/H37)
-   [G92: Providing long description for non-text content that serves the same purpose and presents the same information](https://www.w3.org/WAI/WCAG22/Techniques/general/G92)
-   [G95: Providing short text alternatives that provide a brief description of the non-text content](https://www.w3.org/WAI/WCAG22/Techniques/general/G95)

### Failure techniques

-   [F38: Failure of Success Criterion 1.1.1 due to not marking up decorative images in HTML in a way that allows assistive technology to ignore them](https://www.w3.org/WAI/WCAG22/Techniques/failures/F38)
-   [F65: Failure of Success Criterion 1.1.1 due to omitting the alt attribute or text alternative on img elements, area elements, and input elements of type "image"](https://www.w3.org/WAI/WCAG22/Techniques/failures/F65)

## ACT Rules

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

## 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.  Move the virtual cursor to the image.

**Expected result:** The reader announces the alt text or skips a decorative image.

**Actual result:** If no `alt` text is present, the reader may announce the file name or nothing meaningful.

### Inspecting the browser dev-tools

1.  Open browser dev tools.
2.  Select the image element.
3.  View the Accessibility pane.

**Expected result:** The element shows an accessible name from the `alt` attribute or is flagged “*ignored*”.

**Actual result:** Missing or empty names indicate a failure unless the image is decorative.

## FAQ

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

SC 1.1.1 requires that all non‑text content has a text alternative serving an equivalent purpose. Images without appropriate alt text fail this requirement.

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

Without alt text, people who rely on assistive technology miss essential information or cannot operate controls. This barrier blocks task completion across browsers and screen readers, so it is classified as critical.

**What if the image is purely decorative?**

Set `alt=""`. That alone tells assistive technology to ignore the image; adding `role="none"` or `aria-hidden="true"` isn't required.

## 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. |
| 508 Trusted Tester | [1.1.1-decorative-image, 7.B](https://section508coordinators.github.io/TrustedTester/images.html#check-111-decorative-image) | There is no accessible name and accessible description for a decorative 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)

## Learn More

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

## Related Issues

-   [area-alt](https://knowledge.evinced.com/web/web-validations/area-alt)
-   [input-image-alt](https://knowledge.evinced.com/web/web-validations/input-image-alt)
-   [svg-img-alt](https://knowledge.evinced.com/web/web-validations/svg-img-alt)
-   [object-alt](https://knowledge.evinced.com/web/web-validations/object-alt)
-   [role-img-alt](https://knowledge.evinced.com/web/web-validations/role-img-alt)
