The TR element is a part of the original
Simple Table Model and is also part of
the newer, backward compatible Complex
Table Model. It is a table structuring element that provides a
grouping scheme for individual table cells by table row.
Description:
This attribute sets the internal border color to be used for each cell
in this current row of table cells. Display of this attribute is
dependent on the presence of the BORDER attribute in the
TABLE element.
Description:
This attribute allows independent, 3-D color control over the upper
and left hand borders of the internal cell border color for each cell
in this current row of table cells. To change the lower and right hand
borders of the internal cell border color for each cell in the current
row, use the BorderColorLight attribute (see below.) Display of this
attribute is dependent on the presence of the BORDER attribute in the
TABLE element.
Description:
This attribute allows independent, 3-D color control over the lower and
right hand borders of the internal cell border color for each cell in
this current row of table cells. To change the upper and left hand
borders of the internal cell border color for each cell in the current
row, use the BorderColorDark attribute (see above.) Display of this
attribute is dependent on the presence of the BORDER attribute in the
TABLE element.
Description:
This attribute specifies a character in the content of each cell of the current
row to be used to align the cell content (the first occurrence of the character
should be used.) The default value for this attribute is the decimal point
character for the current specified language.
Values: A case-sensitive character
within the current character set.
Charoff
2
| 3 | 3.2
| 4 | IE
| M | N
| O
Required? No
Description:
This attribute specifies the spacing offset to the first occurrence of the
alignment character (specified by the CHAR attribute) on each line of the
cells in the current row. The direction of the offset is determined by the
current text direction (set with the DIR attribute or the BDO element.)
Values: Integers indicating pixel offset values.
NOWRAP
2
| 3 | 3.2
| 4 | IE
| M | N
| O2.1
Required? No
Description:
This is a standalone attribute which specifies that the data within the
current row will not use normal HTML linebreaking conventions. The
table cells in the row will enlarge to fit whatever data is specified in
the cells (unless explicit linebreaking elements are used.)
Values: NA
VAlign
2
| 3 | 3.2
| 4 | IE2
| M2A8 | N1.1
| O2.1
Required? No
Description:
The VAlign attribute specifies the global vertical alignment of each of
the cells in the current row.
The HTML Tables specification says that end tags for the TR element
are not necessary. You SHOULD always use it anyway in order
to give your markup better readability and to reduce confusion in case
you need to edit your HTML pages by hand.
Make sure that the only content of your top-level TABLE elements are
TR elements or other valid organizational structures.
Also make sure that the only content of your TRs are
TH or TD elements. Otherwise, some browsers may
display table contents incorrectly.
The Table model (even the Simple Table Model) is easily the most
complex markup structure in HTML. If you have general questions about
this structure see the Table Overview.
If you are having problems with table layout and borders are turned
off, it can be helpful to temporarily turn them on - this can reveal
clues of why the layout is misbehaving.
DTD Note: HTML 3.2 did not contain the 'baseline'
value for the VALIGN attribute.