HTML CSS Reference/HTML Attributes Reference/headers — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Версия 09:21, 26 мая 2010
"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>