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

HTML th scope Attribute

HTML scope attribute

HTML th Tag Reference HTML Tag

Example

Specify two header cells as headers for columns:

 

   

   

   

 

 

   

   

   

 

 

   

   

   

 

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

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