Table Summaries
You can summarize the content of your table using the summary attribute within the table element:
<table summary="text description">
If you're thinking “Hey, I bet this has something to do with accessibility,” you're spot-on. Providing summaries does, in fact, assist people with disabilities who require more contextual information about the table.
Summaries won't appear onscreen, unlike alternative text or the title attribute used in links, which include the information as a ToolTip as the mouse passes over the table. In the case of summaries, they are read only by the assistive device, such as a screen reader for a blind user.
Example 4-8 shows the table so far, with a summary added.
Example 4-8. Adding a table summary ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access