Attributo delle intestazioni HTML <th>
Esempio
Specificare l'elemento <th> a cui ogni cella di intestazione è correlata:
<table>
<tr>
<th id="name" colspan="2">Name</th>
</tr>
<tr>
<th headers="name">Firsname</th>
<th headers="name">Lastname</th>
</tr>
</table>
Definizione e utilizzo
L' headers
attributo specifica una o più celle di intestazione a cui è correlata una cella di intestazione.
Nota: l' headers
attributo non ha alcun effetto visivo nei normali browser Web, ma può essere utilizzato dagli screen reader.
Supporto browser
Attribute | |||||
---|---|---|---|---|---|
headers | Yes | Yes | Yes | Yes | Yes |
Sintassi
<th 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 header cell is related to |
❮ Tag HTML <th>