English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag Reference

HTML td headers attribute

The td headers attribute specifies one or more header cells associated with the table cell. The headers attribute has no visual effect in ordinary web browsers, but it can be used by screen readers.

 HTML <td> tag

Online Example

Specify the <th> element associated with each <td> element:

<table style="width:100%" border="1">
  <tr>
    <th id="name">Name</th>/th>
    <th id="email">Email Address</th>/th>
    <th id="phone">Phone Number</th>/th>
    <th id="address">Address</th>
  </tr>
  <tr>
    <td headers="name">Ma Liu</td>
    <td headers="email">[email protected]</td>
    <td headers="phone">+13212345678</td>
    <td headers="address">Shanghai Minhang District</td>
  </tr>
</table>
Test it out ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

The headers attribute has no visual effect in a standard web browser, but can be used by screen readers.

Definition and Usage

The headers attribute specifies one or more header cells associated with the table cell.

HTML 4.01 With HTML5Differences

None.

Syntax

<td headers="header_id">

Attribute Value

ValueDescription
header_idSpecifies a list of one or more header cells related to the table cell, separated by spaces.
 HTML <td> tag