HTML <th> axisProperty

HTML <th> Tag

Example

HTML table with categorized header cells:

<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>[email protected]</td>
    <td>+45342323</td>
    <td>Rosevn 56,4300 Sandnes,Norway</td>
  </tr>
</table>

Try it Yourself »

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

The axis attribute has no visual effect in ordinary Web browsers, but can be used by screen readers.


Definition and Usage

HTML5 does not support the <th> axis attribute.

The axis attribute is used to categorize header cells.

The axis attribute can be used to combine related information columns.


Syntax

<th axis="category_name">

Property value

Value Description
category_name Specify the name of the category.


HTML <th> Tagother extensions