The following example identifies two of the <th> elements as headers for columns, and two of the <td> elements as headers for rows:
![]()
The scope attribute has no visual effect in ordinary web browsers, but can be used by screen readers.
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.
| Value | Description |
|---|---|
| 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
| WEB HOSTING |
|---|
| Best Web Hosting |
| PHP MySQL Hosting |
| Best Hosting Coupons |
| UK Reseller Hosting |
| Cloud Hosting |
| Top Web Hosting |
| $3.98 Unlimited Hosting |
| Premium Website Design |
| WEB BUILDING |
|---|
| XML Editor - Free Trial! |
| FREE Website BUILDER |
| Best Website Templates Top CSS Templates |
| CREATE HTML Websites |
| EASY WEBSITE BUILDER |
| W3SCHOOLS EXAMS |
|---|
|
Get Certified in: HTML, CSS, JavaScript, XML, PHP, and ASP |
| W3SCHOOLS BOOKS |
|---|
|
New Books: HTML, CSS JavaScript, and Ajax |
| STATISTICS |
|---|
|
Browser Statistics Browser OS Browser Display |
| SHARE THIS PAGE |
|---|