HTML <th>
query_builder | Christopher PisaniThe HTML element <th> forms part of element <table>, which displays heading cells in a table.
A simple table example showing the element <th>
<style>
table, th, td {
border: 1px solid black;
padding: 10px;
}
</style>
<table>
<tr>
<th>Month</th>
<th>Spending</th>
</tr>
<tr>
<td>MARCH</td>
<td>£100</td>
</tr>
<tr>
<td>APRIL</td>
<td>£120</td>
</tr>
</table>
Available Attributes
No specific attributes are assigned for this element, other than the standard global attributes.