HTML element: <tr>
Attributes
Attribute |
Value(s) |
Description |
Availability |
|---|---|---|---|
align |
center char justify left right |
This attribute specifies the horizontal alignment of the cell content. |
4.0 or later |
bgcolor |
color |
Deprecated. This attribute specifies the background color of the table cell. |
4.6 or later |
valign |
baseline bottom middle top |
This attribute specifies the vertical alignment of the content within the cell. |
4.6 or later |
Common attributes
The <tr> element supports the class, dir, id, lang, style, and title attributes.
For more information, see Common attributes.
Event attributes
The <tr> element supports the onclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, and onmouseup events.
For more information, see HTML event attributes.