HTML Dog

Skip to navigation

HTML Tag: td

Table data cell. If the cell contains a header rather than data, th should be used instead. td must be used inside a tr element.

Required Attributes

Optional Attributes

Example


<table>
	<tr>
		<th>Question</th>
		<th>Answer</th>
		<th>Correct?</th>
	</tr>
	<tr>
		<td>What is the capital of Burundi?</td>
		<td>Bujumburra</td>
		<td>Yes</td>
	</tr>
	<tr>
		<td>What is the capital of France?</td>
		<td>F</td>
		<td>Erm... sort of</td>
	</tr>
</table>