References

Collection of references for web development.

HTML thead tag

Description

The HTML <thead> element represents a group of table elements used for head section of the <table> element.

Example

<style>
table {
    border-collapse: collapse;
}
td {
	border:1px solid black;
	padding:5px;
}
thead {
	font-weight:bold;
}
</style>
<table>
	<thead>
		<tr>
			<td>Name</td>
			<td>Gender</td>
			<td>Age</td>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>David</td>
			<td>Male</td>
			<td>23</td>
		</tr>
		<tr>
			<td>Jessica</td>
			<td>Female</td>
			<td>47</td>
		</tr>
		<tr>
			<td>Warren</td>
			<td>Male</td>
			<td>12</td>
		</tr>
	</tbody>
	<tfoot>
		<tr>
			<td>n/a</td>
			<td>n/a</td>
			<td>n/a</td>
		</tr>		
	</tfoot>
</table>