Scope is used on <td>

Link to Scope is used on <td> copied to clipboard



The scope attribute MUST NOT be used on a <td> element.


People who are blind cannot see the organizational structure of a table with data arranged in rows and columns with corresponding header cells. In order for screen reader users to understand the logical relationships of data arranged in a table, tables need HTML markup that indicates header cells and data cells and defines their relationship. When tables are marked correctly, screen reader users are able to navigate data tables from cell to cell, in a multi-directional way (up, down, right, left), much like navigating a spreadsheet. As they move from cell to cell, screen readers will read the associated header labels.

How to Fix

Fix this issue by changing each header cell that is marked as a <td> element with a scope attribute to a <th> element.

Note: The scope attribute use on <td> elements is deprecated in HTML5. The scope attribute can be used only on <th> elements.