HTML Dog
Skip to navigation

HTML Tag: tr

Table row containing data cells (td) and/or header cells (th).

tr elements are children of table, tbody, thead, or tfoot elements.

Optional Attributes

Global 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>