martin2k

The THEAD Tag

HomeForumTutorials Tags:
 
 

Name

Table Header

Description

Defines the section of the table used as the table header (top).  This tag is used within the TABLE tag.

Rows (TR) and cells (TD) must be defined as normal within this tag.  The body (TBODY) section of the table is defined after the header and footer (TFOOT) sections so that the header and footer are downloaded first.  When printing large tables, the header section should always appear at the top of the table on every page.

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 TBODY and TFOOT tags.  They are all used within the TABLE tag.

The TR, TH 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 Sunday 05 November 2006 02:06:58 PM -0000.