encabezados HTML td atribuyen
Ejemplos
Se requiere que cada <td> elemento asociado con el 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>
Trate »
Soporte para el navegador
cabeceras propiedad no tiene ningún efecto visual en un navegador Web convencional, pero se puede utilizar lectores de pantalla.
Definición y Uso
encabezados atributo especifica las celdas de la tabla asociados a una o más células cabecera de la tabla.
Diferencias entre HTML 4.01 y HTML5
Ninguno.
gramática
<td headers="header_id">
propiedad Valor
值 | 描述 |
---|---|
header_id | 规定表格单元格关联的一个或多个表头单元格的 id 列表,以空格间隔。 |
HTML etiqueta <td>