Accessibility · Senior · Question 29 of 75
How do you make a <canvas> chart accessible?
- 1Offer the same data as text or a table, and give it a name
- 2Add
tabindex="0"so that its pixels can be read aloud - 3Set
aria-live="polite"on the canvas element itself
Show the answer
Correct answer: Offer the same data as text or a table, and give it a name
Explanation
Canvas content has no semantics. Fallback content inside the element and a data table or summary serve users who can't see it.