HTML CSS Reference/HTML Attributes Reference/headers
"headers" Example
<HTML>
<head><Title>Example For headers</Title></head>
<BODY>
<table width="450">
<tr>
<th id="hdr1">Item Number</th>
<th id="hdr2">Item Name</th>
<th id="hdr3">Item Description</th>
</tr>
<tr>
<td headers="hdr2">cell</td>
<td headers="hdr1">cell</td>
<td headers="hdr3">cell</td>
</tr>
</table>
</BODY>
</HTML>
headers is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<td> <th> |
+----------------+--------------------------------------------------------------+
"headers" Syntax and Note
Note:
This attribute specifies a list of <th> elements.
The value can be the id attribute of a single <th>
It can also be a space-separated list of <th> elements.
This attribute is useful in associating a cell to a column header
based on the id attribute instead of the position or order in
which it appears in the HTML code.
Syntax:
<element headers="value"> . . . </element>