HTML <td> headers attribute
Definition and Usage
headers
The attribute specifies one or more table header cells associated with one or more table cells.
Note:headers
The attribute has no visual effect in ordinary web browsers, but screen readers can use it.
Example
Specify the <th> element related to each <td> element:
<table> <tr> <th id="name">Name</th> <th id="email">Email</th> <th id="phone">Phone</th> <th id="address">Address</th> </tr> <tr> <td headers="name">Bill Gates</td> <td headers="email">someone@example.com</td> <td headers="phone">+13812345678</td> <td headers="address">One Microsoft Way Redmond, WA 98052-6399 USA</td> </tr> </table>
Syntax
<td headers="header_id">
Attribute Value
Value | Description |
---|---|
header_id | Specifies an id list of one or more header cells associated with a table cell, separated by spaces. |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |