atributo cabeçalhos td HTML
Exemplos
Ela exige que cada <td> elemento associado com o elemento <th>:
<table border="1">
<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>
<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>
tente »
Suporte a navegadores
propriedade cabeçalhos não tem efeito visual em um navegador da Web comum, mas você pode usar leitores de tela.
Definição e Uso
headers atributo especifica as células da tabela associados a uma ou mais células cabeçalho da tabela.
Diferenças entre HTML 4.01 e HTML5
Nenhum.
gramática
<td headers="header_id">
Valor de propriedade
值 | 描述 |
---|---|
header_id | 规定表格单元格关联的一个或多个表头单元格的 id 列表,以空格间隔。 |
tag HTML <td>