HTML <td> scope Attribute
The following example identifies two of the <th> elements as headers for columns, and two of the <td> elements as headers for rows:
Try it Yourself »
The scope attribute has no visual effect in ordinary web browsers, but can be used by screen readers.
Definition and Usage
The <td> scope attribute is not supported in HTML5.
The scope attribute defines a way to associate header cells and data cells in a table.
The scope attribute identifies whether a cell is a header for a column, row, or group of columns or rows.
|col||Specifies that the cell is a header for a column|
|row||Specifies that the cell is a header for a row|
|colgroup||Specifies that the cell is a header for a group of columns|
|rowgroup||Specifies that the cell is a header for a group of rows|
HTML <td> tag
Thank You For Helping Us!
Your message has been sent to W3Schools.