HTML Attribute - headers

The HTML attribute headers is used to define the header cells the particular table cells are related to.

Used for:

<td>
Defines a cell in a table
<th>
Defines a header cell in a table

Examples:

<table> <tr> <th id="th1">Country</th> <th id="th2">Capital</th> <th id="th3">City</th> </tr> <tr> <td headers="th1">India</td> <td headers="th2">New Delhi</td> <td headers="th3">Chennai</td> </tr> </table>