-
Notifications
You must be signed in to change notification settings - Fork 203
05. Images
martin@mustbebuilt.co.uk edited this page Sep 1, 2024
·
3 revisions
Lighthouse identifies images that are missing alternate text alt attributes. A11Y checklist states:
- Make sure that all img elements have an
altattribute. - Make sure that decorative images use null
alt(empty) attribute values. - For images containing text, make sure the
altdescription includes the image's text.
Images should have alt attributes if there are more than decorative.
<img src="images/square200px.png" alt="Some Other Picture" />If an image is not integral to the information that the page contains, it is decorative and therefore does not need an alt value. The alt should still be present but left empty, in effect a null value. With the index.html all the images should really have alt applied.