HTML scope attribute
Example
The following example identifies two elements as column headers and two elements as row headers:
| Month | Savings | |
|---|---|---|
| 1 | January | $100 |
| 2 | February | $80 |
Try it »
Browser support





The scope attribute has no visual effect in ordinary web browsers, but can be used by screen readers.
Definition and Usage
HTML5 does not support the scope attribute.
The scope attribute defines the method of associating header cells with data cells in a table.
The scope attribute identifies whether a cell is the header for a column, row, column group, or row group.
Syntax
Attribute values
| Value | Description |
|---|---|
| col | Specifies that the cell is a column header. |
| row | Specifies that the cell is a row header. |
| colgroup | Specifies that the cell is a column group header. |
| rowgroup | Specifies that the cell is a row group header. |
HTML tag