HTML <th> Header - Attribut
Beispiel
Geben Sie das <th>-Element an, auf das sich jede Kopfzelle bezieht:
<table>
<tr>
<th id="name" colspan="2">Name</th>
</tr>
<tr>
<th headers="name">Firsname</th>
<th headers="name">Lastname</th>
</tr>
</table>
Definition und Verwendung
Das headers
Attribut gibt eine oder mehrere Kopfzellen an, auf die sich eine Kopfzelle bezieht.
Hinweis: Das headers
Attribut hat in gewöhnlichen Webbrowsern keinen visuellen Effekt, kann aber von Screenreadern verwendet werden.
Browser-Unterstützung
Attribute | |||||
---|---|---|---|---|---|
headers | Yes | Yes | Yes | Yes | Yes |
Syntax
<th headers="header_id">
Attributwerte
Value | Description |
---|---|
header_id | Specifies a space-separated list of id's to one or more header cells the header cell is related to |
❮ HTML <th>-Tag