Tip 16Improving Table Accessibility

For years, HTML tables have been a great source of pain when it comes to accessibility. It’s easy for sighted people to glance at a table and get the context. It can be much more difficult for people using screen readers to understand the big picture. To make matters worse, before CSS let us lay out our content, developers used tables to define the various regions of the page. This created huge problems for screen-reading software because it had to navigate around the tables and figure out how to read them. Unfortunately, even today, some websites rely on tables for layouts, prompting the HTML5 specification to create a special ARIA role for a layout table:

*
<table​ role=​"presentation"​​>
 
...
 
</table> ...

Get HTML5 and CSS3, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.