The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's HTML Tag Reference

| Index | Previous Tag: <TITLE> | Next Tag: <TT> |


<TR>

Defines a row within a table.

Support:

HTML StandardInternet ExplorerNetscape Navigator
3.0 and later 2.0 and later 1.1 and later
Notes:
  • This tag requires the </TR> end tag.
Attributes:
ALIGN = "Text"
The horizontal alignment of text within each cell in the row.

Support:

HTML StandardInternet ExplorerNetscape Navigator
3.0 and later 2.0 and later 1.1 and later

Notes:

  • Possible values: LEFT, CENTER, RIGHT.

BGCOLOR = "Color value"
The color to use for the background of each cell in the row.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 2.0 and later 3.0 and later

Notes:

  • Use either an RGB value or a color name.
  • Try to use a color that's compatible with the color you're using for your cell text.
  • This attribute is deprecated.

BORDERCOLOR = "Color value"
The color of the borders for each cell in the row.

Support:

HTML StandardInternet ExplorerNetscape Navigator
Not supported 2.0 and later Not supported

Notes:

BORDERCOLORDARK = "Color value"
The color of the border on the bottom and right side of each cell in the row.

Support:

HTML StandardInternet ExplorerNetscape Navigator
Not supported 2.0 and later Not supported

Notes:

  • Use either an RGB value or a color name.
  • This attribute gives you control over the colors used in creating the border's 3-D effect.

BORDERCOLORLIGHT = "Color value"
The color of the border on the top and left side of each cell in the row.

Support:

HTML StandardInternet ExplorerNetscape Navigator
Not supported 2.0 and later Not supported

Notes:

  • Use either an RGB value or a color name.
  • This attribute gives you control over the colors used in creating the border's 3-D effect.

CHAR = "Text (single character)"
The common character upon which data in the cell in the row will be aligned.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later Not supported Not supported

Notes:

  • The default character is the decimal point.

CHAROFF = Positive integer
The amount of space, in pixels, between the row's left edge and the first occurrence of the character specified by CHAR.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later Not supported Not supported

Notes:

  • If you use the <BDO> tag to change the text direction to right-to-left, then this offset is measured from the right edge of the row.

CLASS = "Text"
The style sheet class used by the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later Not supported

Notes:

  • You can specify two or more classes; be sure to separate each class name with a space.

ID = "Text"
An alphanumeric string that uniquely identifies the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later Not supported

Notes:

  • Although you can use letters and numbers for the ID, the first character must be a letter.

LANG = "Text"
The language used by the tag's attribute values and text content.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 4.0 and later Not supported

STYLE = "Text"
The style or styles to use with the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later Not supported

Notes:

  • If you enter multiple style properties, separate each one with a semi-colon (;).

VALIGN = "Text"
The vertical alignment of text within the row.

Support:

HTML StandardInternet ExplorerNetscape Navigator
3.0 and later 2.0 and later 1.1 and later

Notes:

  • Possible values: TOP, MIDDLE, BOTTOM, BASELINE.

Example:
<TABLE BORDER>
<CAPTION ALIGN=TOP>Table 1. Bernard Lavery's humungofoods.</CAPTION>
<TR>
<TH>Comestible <TH>Size<TH> Year 
<TR>
<TD>Cabbage<TD>124 pounds<TD>1989
<TR>
<TD>Carrot<TD>6 feet, 10 ½ inches<TD>1991
<TR>
<TD>Celery<TD>46 pounds, 1 ounce<TD>1990
<TR>
<TD>Cucumber<TD>20 pounds, 1 ounce<TD>1991
<TR>
<TD>Marrow<TD>108 pounds, 2 ounces<TD>1990
<TR>
<TD>Parsnip<TD>14 feet, 3 ¾ inches<TD>1990
<TR>
<TD>Zucchini<TD>64 pounds, 8 ounces<TD>1990
</TABLE>
How It Looks:
Table 1. Bernard Lavery's humungofoods.
Comestible Size Year
Cabbage124 pounds1989
Carrot6 feet, 10 ½ inches1991
Celery46 pounds, 1 ounce1990
Cucumber20 pounds, 1 ounce1991
Marrow108 pounds, 2 ounces1990
Parsnip14 feet, 3 ¾ inches1990
Zucchini64 pounds, 8 ounces1990

| Index | Previous Tag: <TITLE> | Next Tag: <TT> |