Description:

The <tr> tag is used for specifying a table row within a table. A table row contains one or more td and/or th tags which determine individual cells.

Example Code:
<table border="1">
  <tr>
    <td>Cat</td>
    <td>Dog</td>
  </tr>
  <tr>
    <td>Mouse</td>
    <td>Bird</td>
  </tr>
</table>
Result:
Cat Dog
Mouse Bird
Attributes:
Attribute Definition
bgcolor Background color of the tr.

This attribute is not supported in HTML5, use CSS background-color property.

align Visual alignment.
Possible values:
  • left
  • center
  • right
  • justify
  • char

This attribute is not supported in HTML5.

valign Vertical alignment.
Possible values:
  • top
  • middle
  • bottom
  • baseline

This attribute is not supported in HTML5.

char Specifies a character to use for aligning text to. Used when align=char.

This attribute is not supported in HTML5.

charoff Specifies an alignment offset (either in pixels or percentage value) against the first character as specified with the char attribute. Used when align=char

This attribute is not supported in HTML5.

Global Attributes:

The <tr> tag also supports the Global Attributes in HTML5

Event Attributes:

The <tr> tag also supports the Event Attributes in HTML5