headers attribute (td, th)
Sets a list of header cells that provide header information for the current data cell.
The functionality of this attribute is not implemented in browsers. It is typically used by applications that attach header information to data cells like non-visual media (speech). The ids specified by the value of the headers attribute identify the header elements that belong to the current cell.
In the example below, the headers attached to the cell (12.74) are: 'Alabama' (id=loc1), '12-aug-05' (id=dat1), and 'Apple' (id=col1).
String that sets a space-separated list of header cell identifiers.
Default: this attribute has no default value.
Example HTML code 1:
This example illustrates the use of the headers attribute:
Did you find this example helpful?
Supported by tags:
User Contributed Comments