td/th Object
The headers property sets or returns a list of header cells containing header information for the current data cell.
This property sets or returns a space-separated list of header cell ids.
Set the headers property:
Return the headers property:
Tip: There is no default value for the headers property.
| Value | Description |
|---|---|
| header_ids | Defines a space-separated list of header cell ids |
![]()
The headers property is supported in all major browsers.
Display cell headers of second row:
td/th Object
| 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 |
|---|