<tfoot> </tfoot>

PURPOSE: A tag to define a table footer. The thead, tfoot and tbody tags enables you to group rows in a table. You can have a header row, and rows with data, and then a footer at the bottom. It will also support scrolling of the table body independently of the tables header and footer. If long tables are designed, the table header and footer information may be repeated on each page that contains table data.

**If you use the thead, tfoot and tbody elements, you must use every tag, but you can leave them blank. Tags should appear in this order: <thead>, <tfoot> and <tbody>, so that the browser can render the footer before receiving the table data. This tag is very handy using XML code.

Below is a basic html document. The referenced html tag is in RED. All tags must have a start and a end tag. Most end tags have a / before the tags name, however there are a few that are done differently. The tags that end differently will be noted and highlighted. The order of the start and end tags is also very important to proper display of your page in a web browser.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title> The Page Title Goes Here </title>
</head>
<body>
<table border="1">
<thead>
<tr>
<td>This text is for the table header</td>
</tr>
</thead>
<tfoot>
<tr>
<td>This text is for the table footer</td>
</tr>
</tfoot>
<tbody>
<tr>
<td> This will be the text body of the table</td>
</tr>
</tbody>
</table>
</body>
</html>


Here is a example of the above table:

This text is for the table header
This text is for the table footer
This will be the text body of the table

© Copyright 2001,2002 Southern Twilight    All rights reserved.

Back To HTML Examples