HTML scope attribute
Example
Specify two header cells as headers for columns:
| 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
The scope attribute specifies whether a header cell is a header for a column, row, column group, or row group.
Differences between HTML 4.01 and HTML5
none.
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