HTML <th> axisAtributo

HTML th 标签参考手册Etiqueta HTML <th>

Ejemplo

Tabla HTML con celdas de encabezado categorizadas:

<table border="1" width="100%">
  <tr>
    <th axis="name">Name</td>
    <th axis="contact">Email</td>
    <th axis="contact">Phone</td>
    <th axis="contact">Address</td>
  </tr>
  <tr>
    <td>John Doe</td>
    <td>someone@example.com</td>
    <td>+45342323</td>
    <td>Rosevn 56,4300 Sandnes,Norway</td>
  </tr>
</table>

Pruébalo »

Soporte del navegador

Internet ExplorerFirefoxOperaGoogle ChromeSafari

El atributo axis no tiene efectos visuales en los navegadores web normales, pero puede ser utilizado por los lectores de pantalla.


Definición y uso

HTML5 no admite el atributo axis de <th>.

El atributo axis se utiliza para categorizar las celdas de encabezado.

El atributo axis se puede utilizar para agrupar columnas de información relacionadas.


Sintaxis

<th axis="category_name">

Valor de atributo

Valor Descripción
category_name Especifica el nombre de la categoría.


HTML th 标签参考手册Etiqueta HTML <th> Otras extensiones