Table Row

Support Key: [2|3|3.2|4] [X1|X1.1] [IE2|M2A8|N1.1|O2.1]
What is it?
Attributes
Tag Example
Parent/Content Model
Tips & Tricks
Browser Peculiarities
= Index DOT Html by Brian Wilson =
Main Index | Element Tree | Element Index | HTML Support History



   Quick Statistics   
End Tag:
   Optional
Standards Details:
In all HTML 4.x/XHTML DTDs
XHTML Modules:
Basic Tables, Tables
CSS 'display' Type:
"table-row"
CSS Mapping:
NA
Default Rendering:
NA
Official Docs:
HTML 4.x, XHTML 1.1

What is it?
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.
Common Attributes
%Core%
[2|3|3.2|4] [X1|X1.1] [IE3|M|N4B2|O3.5]
%Accessibility%
2|3|3.2|4] [X1|X1.1] [IE4B1|M|N6|O5]
%Events%
[2|3|3.2|4] [X1|X1.1] [IE4B1|M|N6B1|O4]
%Language%
[2|3|3.2|4] [X1|X1.1] [IE4|M|N6B1|O]
%Editing%
[2|3|3.2|4] [X1|X1.1] [IE5.5|M|N|O]

Specific Attributes
Align
[2|3|3.2|4] [X1|X1.1] [IE2|M2A8|N1.1|O2.1]
Standards Details: In all HTML 4.x/XHTML DTDs
Required? No
Description:
This attribute specifies the global horizontal alignment of each of the cells in this current row.
Values: Left | Center | Right | Justify | Char
Background
[2|3|3.2|4] [X1|X1.1] [IE|M|N4|O]
Standards Details: NA
Required? No
Description:
This attribute specifies a background image to be placed in the current table cell. All cell contents will be displayed over this image. If the referenced image is smaller than the table cell size, it will be tiled to fit all of the cell area. The value for this attribute indicates the URL to reference the graphic.
Values: Either an absolute or relative URL. All URLs should be URL encoded where required.
BGColor
[2|3|3.2|4] [X1|X1.1] [IE2|M|N3B1|O2.1]
Standards Details: Deprecated in HTML 4.x/XHTML 1.0. Dropped in XHTML 1.1 in favor of CSS.
Required? No
Description:
This attribute sets the background color to be used for each cell in this current row of table cells.
Values: CDATA. [The standard HTML color specification method values apply.]
BorderColor
[2|3|3.2|4] [X1|X1.1] [IE2|M|N|O]
Standards Details: NA
Required? No
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.
Values: The standard HTML color specification methods.
BorderColorDark
[2|3|3.2|4] [X1|X1.1] [IE2|M|N|O]
Standards Details: NA
Required? No
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.
Values: The standard HTML color specification methods.
BorderColorLight
[2|3|3.2|4] [X1|X1.1] [IE2|M|N|O]
Standards Details: NA
Required? No
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.
Values: The standard HTML color specification methods.
Char
[2|3|3.2|4] [X1|X1.1] [IE|M|N|O]
Standards Details: In all HTML 4.x/XHTML DTDs
Required? No
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: CDATA.
Charoff
[2|3|3.2|4] [X1|X1.1] [IE|M|N|O]
Standards Details: In all HTML 4.x/XHTML DTDs
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: CDATA. [Integers indicating pixel offset values.]
Height
[2|3|3.2|4] [X1|X1.1] [IE5|M|N6B3|O4]
Standards Details: NA
Required? No
Description:
This attribute explicitly specifies the height of this table row in pixels.
Values: Positive integers.
NOWRAP
[2|3|3.2|4] [X1|X1.1] [IE|M|N|O2.1-3.2x]
Standards Details: NA
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] [X1|X1.1] [IE2|M2A8|N1.1|O2.1]
Standards Details: In all HTML 4.x/XHTML DTDs
Required? No
Description:
The VAlign attribute specifies the global vertical alignment of each of the cells in the current row.
Values: Top | Middle | Bottom | Baseline
Example
[Using the Simple Table Model]
<table border="2" align="left" cellpadding="5"
bordercolor="#ff0000" width="75%">
      <caption align="top">Juggling Capabilities of Waterfront Performers</caption>
      <tr> <th>Juggler</th><th>Pins</th><th>Bowling Balls</th><th>Flaming Baseballs</th> </tr>
      <tr> <td>Bob</td> <td>5</td> <td>2</td> <td>5</td> </tr>
      <tr> <td>Larry</td> <td>2</td> <td>7!!!</td> <td>NA</td> </tr>
      <tr> <td>Julie the Great</td> <td>1</td> <td>2</td> <td>20<br>(She IS great!)</td> </tr>
      <tr> <th colspan="4">NOTE: This is only a small sample</th> </tr>
</table>
Parent Model
<table> | <tbody> | <thead> | <tfoot>
Content Model
<th> | <td>
Tips & Tricks Browser Peculiarities
Boring Copyright Stuff...