Advertisement
❮ Previous: <title> Next: <track> ❯

<tr>

HTML <tr> (Table Row) Tag

Example

<table>
<thead>
  <tr>
    <th>Heading</th>
    <th>Heading</th>
  </tr>
</thead>
<tbody>
  <tr>
    <td>Data</td>
    <td>Data</td>
  </tr>
</tbody>
<tfoot>
  <tr>
    <td>Foot data</td>
    <td>foot data</td>
  </tr>
</tfoot>
</table>

Try this code ❯

Meaning

The <tr> element specifies a row in a table. The individual cells of the row are defined by the <th> and <td> elements.

Note:

Version: HTML 3.2, 4, 4.01, 5


Standard Syntax

<tr>...</tr>


Advertisement

Global Attributes

The <tr> element also supports the Global Attributes in HTML.


Event Attributes

The <tr> element also supports the Event Attributes in HTML.


By Default CSS Value(s)

Most of the browsers will display the <tr> element with the following by default value(s)

tr {
  display: table-row;
  vertical-align: inherit;
  border-color: inherit;
}

Related Tags:

<caption>,
<col>,
<colgroup>,
<table>,
<tbody>,
<td>,
<tfoot>,
<th> and
<thead>

❮ Previous: <title> Next: <track> ❯
Advertisement