W3 3.2n
4.0y
NS 3.0n
4.0n
IE 3.0n
4.0y
TV 1.2n
2.1n

<TBODY>...</TBODY>

Description

This element defines the body part of a table. A table can contain three parts, a header (declared with the THEAD element), a footer (declared with the TFOOT element) and one or more bodies. These parts must be declared in this order. Separating a table in these parts gives a browser the possibility to scroll through the data and keep the header and footer in place, or repeat the header and footer when the page is printed and span more than one page.

The body of the table must contain the rows with the actual table data.

Attributes

Core attributes: class id style title
Internationalization attributes: dir lang
Events: onclick ondblclick onmousedown onmouseup onmouseover onmousemove onmouseout onkeypress onkeydown onkeyup

W3 3.2n
4.0y
NS 3.0n
4.0n
IE 3.0n
4.0y
TV 1.2n
2.1n
ALIGN
Set the horizontal alignment of the contents of the cells in the body of the table. Possible values are :

Value Description
center The contents of table cells are centered.
char This attribute defines that the contents of table cells must be centered around a certain character. Which character this is, is defined with the char attribute.

If no char attribute is given, a default character is used. This is the character that is defined to represent the decimal point in the current language. In English this is the period ("."), in Dutch it is the comma (",").

justify The contents of table cells is evenly spread between the left and right border of a table cell. This is achieved by enlarging the space between each word on a line.
left The contents of table cells are aligned to the left side.
right The contents of table cells are aligned to the right side.


W3 3.2n
4.0y
NS 3.0n
4.0n
IE 3.0n
4.0n
TV 1.2n
2.1n
CHAR
When you specify align="char", this attribute specifies which character must be used to center the text around.

When more than one occurrence of the character is present, the first occurrence is used.


W3 3.2n
4.0y
NS 3.0n
4.0n
IE 3.0n
4.0n
TV 1.2n
2.1n
CHAROFF
This attribute specifies an offset that must be used when align="char" is used. The value can be specified as a number of pixels, or as a percentage of the current width.

This offset is added to the position where the character to center around is. The direction of the offset depends on the current direction of the text.

When the alignment character isn't present in the line, the text is shifted, so that the text ends at the offset.


W3 3.2n
4.0y
NS 3.0n
4.0n
IE 3.0y
4.0y
TV 1.2n
2.1n
VALIGN
Set the vertical alignment of the contents of the cells in the table body. Possible values are :

Value Description
baseline The first line of the contents of the cell are aligned with a common baseline.
bottom The text in each cell in the column is aligned at the bottom of the cell.
middle The text is centered vertically in each cell.
top The text in each cell is aligned at the top of the cell.

Examples

Source
A template for a table :
<P>
<TABLE border>
<THEAD>
<TR><TD>The header of the table</TD></TR>
</THEAD>

<TFOOT>
<TR><TD>The footer of the table</TD></TR>
</TFOOT>

<TBODY>
<TR><TD>The first body of the table</TD></TR>
</TBODY>

<TBODY>
<TR><TD>The second body of the table</TD></TR>
</TBODY>
</TABLE>
 
Result
A template for a table :

The header of the table
The footer of the table
The first body of the table
The second body of the table

Statistics