/

HTML / CSS / JavaScript Tutorial

HTML Standard attribute: scope

[this page | pdf | back links]

The HTML scope attribute indicates whether a table header cell (i.e. a <th> element) is a header for a column, a row or for groups of either columns or rows. The scope attribute is no longer supported in HTML 5.

 

Valid attribute values (when used with <td> elements) include:

 

Value

Description

col

Cell is header for a column

colgroup

Cell is header for a group of columns

row

Cell is header for a row

rowgroup

Cell is header for a group of rows

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile