Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML td scope attribute

HTML scope attribute

HTML td Tag Reference HTML Tag

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

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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 td Tag Reference HTML tag