RAWEBA
1.1 Does each image conveying information have a text alternative?
- WCAG references
- 1.1.1 Non-text Content (A)
- Techniques
- F65
- H24
- H36
- H37
- H53
Official methodology to test criterion 1.1
Test 1 (1.1.1)
- Find in the document the images implemented using an
<img>element or an element with the WAI-ARIArole="img"attribute. - For each image, determine whether the image conveys information.
- If it is an
<img>element, check that the image has at least one of the following text alternatives:- passage of text associated via the WAI-ARIA
aria-labelledbyattribute; - value of the WAI-ARIA
aria-labelattribute; - value of the
altattribute; - value of the
titleattribute.
- passage of text associated via the WAI-ARIA
- In the case of an element with the WAI-ARIA
role="img"attribute, check that the image has at least one of the following text alternatives:- passage of text associated via the WAI-ARIA
aria-labelledbyattribute; - value of the WAI-ARIA
aria-labelattribute.
- passage of text associated via the WAI-ARIA
- If at least one text alternative is found, the test is validated.
Test 2 (1.1.2)
- Find in the document the
<area>elements. - For each
<area>element, determine whether the image map area carries information. - Check that the image map area has at least one of the following text alternatives:
- value of the WAI-ARIA
aria-labelattribute; - value of the
altattribute;
- value of the WAI-ARIA
- If at least one text alternative is found, the test is validated.
Test 3 (1.1.3)
- Find in the document the
<input>elements with thetype="image"attribute. - For each
<input>element with the attribute type="image", determine whether the image used conveys information. - Check that the
<input>element has at least one of the following text alternatives:- passage of text associated via the WAI-ARIA
aria-labelledbyattribute; - value of the WAI-ARIA
aria-labelattribute; - value of the
altattribute; - value of the
titleattribute.
- passage of text associated via the WAI-ARIA
- If at least one text alternative is found, the test is validated.
Test 4 (1.1.4)
- Find in the document the
<img>elements with theismapattribute. - For each
<img>element with theismapattribute, check for the presence of a link or set of links (or another type of user interface component which plays a similar role, such as a combobox, for example) providing access to the same resources as when the image is clicked. - If this is the case, the test is validated.
Test 5 (1.1.5)
- Find in the document the
<svg>elements. - For each
<svg>element, determine whether the image conveys information. - Check that the
<svg>element has a WAI-ARIArole="img"attribute. - If this is not the case, the test is invalidated.
- If necessary, check that the
<svg>element has at least one of the following text alternatives:- value of the
<title>element; - passage of text linked by the WAI-ARIA
aria-labelledbyattribute; - value of the WAI-ARIA
aria-labelattribute;
- value of the
- If at least one text alternative is found, the test is validated.
Test 6 (1.1.6)
- Find in the document the opening
<object>tags with thetype="image/..."attribute. - For each opening
<object>tag with thetype="image/..."attribute, determine whether the image used is conveying information. - Check that the
<object>element has a WAI-ARIArole="img"attribute. - Check that the
<object>element has at least one of the following text alternatives:- passage of text associated via the WAI-ARIA
aria-labelledbyattribute; - value of the WAI-ARIA
aria-labelattribute; - value of the
titleattribute.
- passage of text associated via the WAI-ARIA
- If at least one text alternative is found, the test is validated.
- Otherwise, check that:
- either the
<object>element is immediately followed by an adjacent link or button providing access to alternative content; - or a mechanism allows the user to replace the
<object>element with alternative content.
- either the
- If this is the case, the test is validated.
Test 7 (1.1.7)
- For each
<embed>element with thetype="image/..."attribute, determine whether the image used is conveying information. - Check that the
<embed>element has a WAI-ARIArole="img"attribute. - Check that the
<embed>element has at least one of the following text alternatives:- passage of text associated via the WAI-ARIA
aria-labelledbyattribute; - value of the WAI-ARIA
aria-labelattribute; - value of the
titleattribute.
- passage of text associated via the WAI-ARIA
- If at least one text alternative is found, the test is validated.
- Otherwise, check that:
- either the
<object>element is immediately followed by an adjacent link or button providing access to alternative content; - or a mechanism allows the user to replace the
<object>element with alternative content.
- either the
- If this is the case, the test is validated.
Test 8 (1.1.8)
- Find
<canvas>elements in the document. - For each
<canvas>element, determine whether the image used conveys information. - Check that the
<canvas>element has a WAI-ARIArole="img"attribute. - Check that the opening
<canvas>tag has at least one of the following text alternatives:- passage of text associated via the WAI-ARIA
aria-labelledbyattribute; - value of the WAI-ARIA
aria-labelattribute.
- passage of text associated via the WAI-ARIA
- If at least one text alternative is found, the test is validated.
- If steps 3 and 4 are not satisfied, check that:
- either the
<canvas>element has alternative content between the<canvas>and</canvas>tags; - or the
<canvas>element is immediately followed by an adjacent link or button providing access to alternative content; - or a mechanism allows the user to replace the
<canvas>element with alternative content.
- either the
- If this is the case, the test is validated.
Note: if the <canvas> element has an img role, its alternative can only be provided by the techniques listed in step 4.