TR
Description
The TR element defines a table row in one of the three sections
of the TABLE construct: THEAD, TFOOT, or TBODY.
The contents of the TR element is required to contain at least one
of either the TH element or the TD element.
Minimum Attributes
<TR>
All Possible Attributes
<TR
LANG="..."
DIR=ltr|rtl
ID="..."
CLASS="..."
ALIGN=left|right|center|justify|char|decimal
CHAR="..."
CHAROFF="..."
VALIGN=top|middle|bottom|baseline
DP="...">
Elements Allowed Within...
Allowed In Content Of...
Variations
The TR element is part of the proposed TABLE construct.
A browser is to assume the table row ends with the beginning
of the next table row, the next table row group, or
the end of the table and thus a closing tag is not required.
An early Version 3 proposal recommended that browsers should
tolerate the absence of the first TR in a table,
but this option was not included in the formal table proposal.
This element is an extension in Netscape 1.1 and MS Internet Explorer 2.0.
The values justify|char for the ALIGN attribute
are new and are not widely implemented.
The table proposal states that a browser may display
ALIGN=justify the same as the default
ALIGN=left if it lacks support for text justification.
The attribute DP is from an earlier version of the proposal and
was used with a value of decimal on the ALIGN attribute.
It has been replaced with the CHAR and CHAROFF attributes
used when ALIGN=char.
CHAR specifies a single character to be used for alignment, and
defaults to the decimal point in the current language.
CHAROFF specifies the offset, in the DIR direction, to the first
occurrence of the CHAR character on each line. If a line doesn't
include the CHAR character, it is to end at the CHAROFF position.
The default value for CHAROFF is either 50% or whatever will cause
the CHAR characters in all cells with a declared CHAR in a column to align.
The default units is pixels, but may be specified by a suffix on the number.
The standard defined units suffixes include:
pt=points,
pi=picas,
in=inches,
cm=centimeters,
mm=millimeters,
em=em units,
px=screen pixels.
In addition the suffix of a percentsign may be used to specify the
percentage offset within the cell.
The VALIGN attribute defines the vertical alignment of the cell contents.
The ALIGN, CHAR and CHAROFF attribute values may be inherited from
other table elements in the following order:
cells < columns < column groups < rows < row groups < default.
The VALIGN, LANG and DIR attribute values may be inherited from
other table elements in the following order:
cells < rows < row groups < columns < column groups < table < default.