Issue/Question
When I run a Page Check I get the following Serious Problem:
table cells that use the headers attribute must only refer to cells in the same table
Environment
Cause
Final Checks evaluate all code on a page and detect accessibility issues not meeting WCAG 2.0 (Level AA) standards.
It detected the page contains a table with multiple table header cells for columns and rows. Screen readers have a specific way of announcing tables. When tables are not properly marked up, this creates opportunity for confusing or inaccurate screen reader output. Complicated tables with multiple headers required the scope property to differentiate them.
Tables with more than one row/column of headers can be difficult to make accessible through the WYSIWYG. Consider replacing the table with a snippet such as cards or columns to group sets data, or splitting the table into multiple tables instead.
If you wish to make the table accessible follow these steps to apply the correct scope to the table headers:
- Click Yellow Light Bulb to check out page.
- Click Edit tab.
- Click Edit button on content area where table is located.
- Right click in header cell.
Note: See Add WKU Styling to Your Table to learn how to create table headers and style them WKU red.
- Hover over Cell in the pop-up menu.
- Select Cell Properties.
- Change Scope dropdown to either Row or Column, depending on which the header is for.
- Repeat for all table header cells.
- Save page.
- Click Publish button to run accessibility final check again. When the issue is resolved it will no longer display in the accessibility check.