Sometimes, we want to add tooltips for cells in HTML table.
In this article, we’ll look at how to add tooltips for cells in HTML table.
How to add tooltips for cells in HTML table?
To add tooltips for cells in HTML table, we add the title attribute to our table elements.
For instance, we write
<td title="This is Title">...</td>
to set the title attribute to the tooltip text in the td element.
Then when we hover the cell, the tooltip text would be the title attribute value.
Conclusion
To add tooltips for cells in HTML table, we add the title attribute to our table elements.