Applied Accessibility -5 Improve Chart Accessibility with the figure Element
Improve Chart Accessibility with the figure Element
HTML5 introduced thefigure element, along with the related figcaption.
Used together, these items wrap a visual representation (like an image,
diagram, or chart) along with its caption. This gives a two-fold
accessibility boost by both semantically grouping related content, and
providing a text alternative that explains the figure.For data visualizations like charts, the caption can be used to briefly note the trends or conclusions for users with visual impairments. Another challenge covers how to move a table version of the chart's data off-screen (using CSS) for screen reader users.
<figure> <img src="roundhouseDestruction.jpeg" alt="Photo of Camper Cat executing a roundhouse kick"> <br> <figcaption> Master Camper Cat demonstrates proper form of a roundhouse kick. </figcaption> </figure>
Comments
Post a Comment