Language References
Denotes a row in a table. | HTML 3.2, 4, 4.01, 5 |
HTML Syntax
<tr
align = center | left | right
bgcolor = color
bordercolor = color
bordercolordark = color
bordercolorlight = color
class = classname
id = value
style = css properties
title = text
valign = baseline | bottom | center | middle | top
event = script
>
The TR element specifies a table row. TR elements can only be used within a TABLE element.
Each TR element can contain TH elements, which indicate table headings, and TD elements, which indicate the table data cells.
Although the W3C specifies that TR end tags are optional and may be omitted, it is safer to always close table rows, as not all browsers support this recommendation, and may produce unexpected results.
TR Members
This example shows a table with two rows.
<table>
<tr><td>This is the first row.</td></tr>
<tr><td>This is the second row.</td></tr>
</table>
TABLE TD TH Using Tables