HTML Dog

Skip to navigation

HTML Tag: tbody

Table body. Along with thead and tfoot, tbody can be used to group a series of rows. tbody can be used more than once to separate different sections and must be used if thead and tfoot are used. It must be used within a table element and must follow both thead and tfoot elements when used.

Required Attributes

Optional Attributes

Example


<table>
	<thead>
		<tr>
			<th>Header 1</th>
			<th>Header 2</th>
			<th>Header 3</th>
		</tr>
	</thead>
	<tfoot>
		<tr>
			<td>Footer 1</td>
			<td>Footer 2</td>
			<td>Footer 3</td>
		</tr>
	</tfoot>
	<tbody>
		<tr>
			<td>Cell data 1</td>
			<td>Cell data 2</td>
			<td>Cell data 3</td>
		</tr>
		<tr>
			<td>Cell data 4</td>
			<td>Cell data 5</td>
			<td>Cell data 6</td>
		</tr>
		<tr>
			<td>Cell data 7</td>
			<td>Cell data 8</td>
			<td>Cell data 9</td>
		</tr>
	</tbody>
</table>