Do informative and functional images have alt text? The following types of images need alt text:
- Images that communicate information
- Images of text
- Images that are part of a link or a button (where there is no other descriptive text inside them).
Do decorative images have blank alt text (alt="")? Decorative images can be defined as:
- Images that do not provide any information to sighted users, or
- Images that compliment text inside a link or button.
Links that only have an image within them should have an alt-text that describes the destination of the link, not the description of the image.
How to test:
- Right-click on the image with the mouse and select "Inspect". The code inspector should be displayed.
- Look for the 'alt' attribute in the code.
- Confirm that the 'alt attribute' clearly describes the image.