Charts, maps, and diagrams can carry more detail than a short alt attribute can convey. Keep alt text concise and make the full information available in text nearby or through a link. Organize longer descriptions with headings, lists, or tables when needed: alt text is announced as one continuous string, while structured text supports navigation. section 3.3.4
Make the longer description easy to find and use:
- Place it next to the image, and use the alt text to direct users to it. section 3.3.4
- Link to the full description and make the link clear in the alt text. section 3.3.4
- Group the image and its description in a figure, using structured content such as headings and tables. section 3.3.4
<figure role="group"> #A
<img
src="poll.png"
alt="Pie chart of exit poll results. Full details presented below."> #B
<figcaption> #C
<h2>Exit poll results</h2>
<p>In the recent exit polls, we have observed the following outcomes...</p>
<h3>Sentiment towards leaders</h3>
<p>The following table presents….</p>
<table>
...
</table>
</figcaption>
</figure>
Example: a figure groups a poll chart with explanatory text, headings, and a table. section 3.3.4
