HTML <td> headers Atribut
Příklad
Zadejte prvek <th>, ke kterému se každý prvek <td> vztahuje:
<table>
<tr>
<th id="name">Name</th>
<th id="email">Email</th>
<th id="phone">Phone</th>
<th id="addr">Address</th>
</tr>
<tr>
<td headers="name">John Doe</td>
<td headers="email">[email protected]</td>
<td headers="phone">+45342323</td>
<td headers="addr">Rosevn 56,4300 Sandnes,Norway</td>
</tr>
</table>
Definice a použití
Atribut headers
určuje jednu nebo více buněk záhlaví, ke kterým se buňka tabulky vztahuje.
Poznámka: Atribut headers
nemá v běžných webových prohlížečích žádný vizuální efekt, ale mohou jej používat programy pro čtení z obrazovky.
Podpora prohlížeče
Attribute | |||||
---|---|---|---|---|---|
headers | Yes | Yes | Yes | Yes | Yes |
Syntax
<td headers="header_id">
Hodnoty atributů
Value | Description |
---|---|
header_id | Specifies a space-separated list of id's to one or more header cells the table cell is related to |
❮ HTML tag <td>