martin2k

The TBODY Tag

HomeForumTutorials Tags:
 
 

Name

Table Body

Description

Defines the section of the table used between the table header (THEAD) and table footer (TFOOT).  This tag is used within the TABLE tag.  The table body contains all the table data.

Rows (TR) and cells (TD) must be defined as normal within this tag.  The body section of the table is defined after the header and footer sections so that the header and footer are downloaded first.

The use of the THEAD, TBODY and TFOOT in tables tags are optional.

Attributes

ALIGN

Specifies the alignment of the text in the cells.  Valid values include:

Value
center
left (default)
justify
right

VALIGN

Specifies the vertical alignment of the text in the cells.  Valid values include:

Value
baseline
bottom
middle (default)
top

Related Tags

This tag must be used with the THEAD and TFOOT tags.  They are all used within the TABLE tag.

The TR and TD tags are used within this tag.

Example

Code

<table border="1" cellpadding="1" cellspacing="2" bgcolor="#000000">

<thead>
<tr>
<th>Header Cell</th>
</tr>
</thead>
<tfoot>
<tr>
<td>Footer Cell</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>Body cell 1</td>
</tr>
<tr>
<td>Body cell 2</td>
</tr>
</tbody>

</table>

Generates

Header Cell
Footer Cell
Body cell 1
Body cell 2

Please fill in the below form if you have any comments or additional information you want to add about the above information.  If you have any questions, please visit the ForumAny questions sent using this form will be ignored.

* - Mandatory

*Name: E-mail:

*Comments:

*Please type the following code (your comment cannot be accepted without it):


© Martin Allen 1999 - 2006.  Last updated Tuesday 31 October 2006 07:19:52 PM -0000.