SIA-R2Images have an accessible name
This rule tests conformance of the following accessibility requirements:
This rule checks that images have an accessible name.
This rule makes no assumptions.
This rule has the following accessibility support concern:
- There exists a known combination of a popular browser and an assistive technology that does not by default support use of the
titleattribute as an accessible name.
<img src="https://picsum.photos/700/150" alt="A placeholder image" />
<div role="img" style="width: 700px; height: 150px; background-image: url(https://picsum.photos/700/150)" aria-label="A placeholder image" ></div>
This image has no accessible name and therefore fails the rule:
<img src="https://picsum.photos/700/150" />
This image is not included in the accessibility tree and is therefore inapplicable:
<img src="https://picsum.photos/700/150" aria-hidden="true" />
This document includes material copied from or derived from https://act-rules.github.io/rules/23a2a8/. Copyright © 2021 W3C® (MIT, ERCIM, Keio, Beihang).