Attributo delle intestazioni HTML <td>
Esempio
Specificare l'elemento <th> a cui ogni elemento <td> è correlato:
<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>
Definizione e utilizzo
L' headers
attributo specifica una o più celle di intestazione a cui è correlata una cella di tabella.
Nota: l' headers
attributo non ha alcun effetto visivo nei normali browser Web, ma può essere utilizzato dagli screen reader.
Supporto del browser
Attribute | |||||
---|---|---|---|---|---|
headers | Yes | Yes | Yes | Yes | Yes |
Sintassi
<td headers="header_id">
Valori di attributo
Value | Description |
---|---|
header_id | Specifies a space-separated list of id's to one or more header cells the table cell is related to |
❮ Tag HTML <td>