<TR>
The table row (TR) tag is used to define table rows which are
contained with a table (TABLE) element. Each table may have
as many rows as you like.
A closing tag is required for this element.
Attributes
Attribute |
Description |
ID |
Identifies this tag to reference in script (program code) |
CLASS |
Define the class used to render this element (defined by a style sheet) |
TITLE |
A title that is associated with the element (displayed as a tooltip in Internet Explorer) |
HEIGHT |
Define a recommened cell height for the table header. This can be a number of pixels or
a percentange of the total available height. The user-agent is free to set cell widths
as needed to resolve conflicts. |
BGCOLOR |
Defines a background color to render this table row with. This should be a
red-green-blue triplet value such as "#ffc0ff" or one of the pre-defined color constants. |
ALIGN |
Specifies the horizontal alignment of the content placed within table cells
inside this table row element. This may be one of the following:
"left", "right" or "center". |
VALIGN |
Specifies the vertical alignment of the content placed within table cells
inside this table row element. This may be one of the following:
"top", "bottom" or "center". |
|
Example
<TABLE BORDER="1" CELLPADDING="2" CELLSPACING="10" BGCOLOR="#F0FFF0">
<TR>
<TH>Upper left</TH>
<TH>Upper right</TH>
</TR><TR>
<TD>Lower left</TD>
<TD>Lower right</TD>
</TR>
</TABLE>
Renders As:
Upper left |
Upper right |
Lower left |
Lower right |
Compatibility
HTML 4.01
|