Tutorials References Exercises Bootcamp Menu
Sign Up Create Website Get Certified Upgrade

HTML scope Attribute

Definition and Usage

The scope attribute specifies whether a header cell is a header for a column, row, or group of columns or rows.

The scope attribute has no visual effect in ordinary web browsers, but can be used by screen readers.

Applies to

The scope attribute can be used on the following element:

Element Attribute
<th> scope


Specify that the two header cells are headers for columns:

    <th scope="col">Month</th>
    <th scope="col">Savings</th>
Try it Yourself »

Browser Support

scope Yes Yes Yes Yes Yes