axis (HTML attribute)

Spec
Depr. Version
No HTML 4
Browser support (more…)
IE8 FF3.5 SA4 OP10 CH2
None None None None None

Syntax

axis="string"

Description

The axis attribute provides a mechanism for grouping related columns or rows of information. In the example above, there are four pieces of information, but the email and phone details could be grouped together as points of contact. You’re advised, however, to reserve the use of axis for the th element (if you feel the urge to use it, which may be unlikely, given its poor support).

Example

In this code, four table headers are grouped into three categories—name, contact, and location—using axis:

<tr>
  <td axis="name">Fred</td>
  <td axis="contact">fred@megacorp.com</td>
  <td axis="contact">123456</td>
  <td axis="location">1/A</td>
</tr>

Value

This attribute can take as its value any name that the developer chooses, as long as it doesn’t contain spaces or special characters.

Compatibility

Internet Explorer Firefox Safari Opera Chrome
5.5 6.0 7.0 8.0 1.0 1.5 2.0 3.0 3.5 1.3 2.0 3.1 4.0 9.2 9.5 10.0 2.0
None None None None None None None None None None None None None None None None None

Very poor support is provided for this attribute. Refer to the compatibility section for this attribute as applied to the th element for more information.

User-contributed notes

There are no comments yet.

Related Products