Atribut header <th> HTML
Contoh
Tentukan elemen <th> yang terkait dengan setiap sel header:
<table>
<tr>
<th id="name" colspan="2">Name</th>
</tr>
<tr>
<th headers="name">Firsname</th>
<th headers="name">Lastname</th>
</tr>
</table>
Definisi dan Penggunaan
Atribut headers
menentukan satu atau lebih sel header yang terkait dengan sel header.
Catatan: Atribut headers
tidak memiliki efek visual di browser web biasa, tetapi dapat digunakan oleh pembaca layar.
Dukungan Peramban
Attribute | |||||
---|---|---|---|---|---|
headers | Yes | Yes | Yes | Yes | Yes |
Sintaksis
<th headers="header_id">
Nilai Atribut
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 <th> HTML