TR (Table Row) TAG and ATTRIBUTES

<TR></TR>

This element specifies a row in a table. The individual cells of the row are defined by the <TH> and <TD> elements.


ATTRIBUTES

ALIGN = "CENTER | LEFT | RIGHT | JUSTIFY"
BGCOLOR = "color name | #RRGGBB"
BORDERCOLOR = "color name | #RRGGBB"
CLASS = "class name(s)"
STYLE = "style information"
VALIGN = "BASELINE | BOTTOM | MIDDLE | TOP"

EVENTS

onclick
ondblclick
onkeydown
onkeypress
onkeyup
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup


ALIGN  This attribute is used to align the contents of the cells within the <TR> elements. Common values are CENTER, JUSTIFY, LEFT, and RIGHT.

BGCOLOR  This attribute specifies a background color for all the cells in a row. Its value can be either a named color, such as red, or a color specified in the hexadecimal #RRGGBB format, such as #FF0000.

BORDERCOLOR  This attribute is used to set the border color for table cells in the row. The attribute should only be used with a positive value for the BORDER attribute. The value of the attribute can be either a named color, such as green, or a color specified in the hexadecimal #RRGGBB format, such as #00FF00.

CLASS  See Cascading Style Sheets (CSS) Information.

STYLE  See Cascading Style Sheets (CSS) information.

VALIGN  This attribute is used to set the vertical alignment for the table cells within the <TR> element.

Back to Top