HTML Tutorial
The <th> tag defines a header cell in a table.
<th> tag to create a header cell in a table row (<tr>).<th> tags are typically used to differentiate the header cells from the body cells in a table.<table>
<thead>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
</thead>
<tbody>
<tr>
<td>John Doe</td>
<td>30</td>
</tr>
</tbody>
</table>
Exploring the <th> Tag:
<!DOCTYPE html>
<html>
<body>
<table>
<thead>
<tr>
<th>Name</th>
<th>Age</th>
</tr>
</thead>
<tbody>
<tr>
<td>John Doe</td>
<td>30</td>
</tr>
<tr>
<td>Jane Smith</td>
<td>25</td>
</tr>
</tbody>
</table>
</body>
</html>
<th> tags are used to create header cells in tables.<th> tags can be styled using CSS.