Purpose |
- Images can convey a wide range of content and be used for many different purposes on a web page, from button and icon images that perform simple actions to complex graphics that help people visualize the features and relationships of large data sets.
- Markup supports creating both short and long text alternatives. A short text alternative is designed to orient people who cannot see the image to the type of content it contains or its purpose on the page. A long text alternative or long description provides comprehensive details of the features of an image, e.g., the data used to generate a chart or graph, relationships in a flow chart, or a MathML version of a mathematical equation.
- Images that function as buttons and perform an action on the page should have a short text alternative that is as succinct as possible (e.g., "Increase text size").
- Informative images of photographs need a short text alternative and additionally can often benefit from long descriptions.
- Informative images of charts or graphs need both a short text alternative and a long description to describe its purpose and the data used to create it.
- If an image that is informative does not have text alternative content, users of assistive technologies will not have access to the information the image conveys.
|