Home → References → HTML Tags →
HTML Tag: tr
Table row. tr elements must appear within a table element.
HTML Dog is hosted by Titan Internet
Required Attributes
- None.
Optional Attributes
aligncan be used to horizontally align the content of the cell. The value can beleft,center,right,justifyorchar.valigncan be used to vertically align the content of the cell. The value can betop,middle,bottomorbaseline.charcan be used to specify a character with which cells will align, such as a decimal point. It is not supported by any major browser.charoffcan be used to specify the number of pixels the alignment should be offset from the char character. It is not supported by any major browser.- Common 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>

