<tr>...</tr>

HTML4 HTML5

Creates a table row.

Both opening and closing tags are required.

Example 1

<table>
  <tr>
    <th>Last Name</th>
    <th>First Name</th>
  </tr>
  <tr>
    <td>Kowalski</td>
    <td>Jan</td>
  </tr>
  <tr>
    <td>Nowak</td>
    <td>Dominika</td>
  </tr></table>

 The browser will interpret this code as follows:

Last NameFirst Name
Kowalski Jan
Nowak Dominika

The table consists of 2 columns and 3 rows. Each row is contained between the <tr> and </tr> tags. Inside the rows, the <td> tags define individual table cells.

The appearance of a table row can be modified using the following attributes:

align="..." - Not supported in HTML5, specifies the default horizontal alignment of text in a table row:

bgcolor="..." - Not supported in HTML5, specifies the background color of a table row:

valign="parameter" -  Not supported in HTML5, specifies the default vertical alignment of text in a table row: