How to define one or more header cells a cell is related to in HTML ?
This article aims to add one or more header cells to a cell related to HTML.
Approach: This can be done by using the headers attribute in the HTML document while using the <td> and <th> tag. It contains the value i.e. header_id that specify the space to the separated list of id’s to one or more header cell that the table header cell is related to.
<td headers="header_id"> Content..</td>
- Google Chrome
- Internet Explorer
- Apple Safari
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.