This topic has not yet been rated - Rate this topic

tfoot element | tFoot object

[This documentation is preliminary and is subject to change.]

Designates rows as the table's footer.

Document Object Model (DOM) Level 2 HTML Specification, Section 1.6.5HTML 4.01 Specification, Section 11.2.3

Standards information

DOM Information

Inheritance Hierarchy

 Node
  Element
   HTMLElement
     tFoot

Remarks

Valid tags within the TFOOT element include:

You can specify only one tFoot object for any given table object.

The table object and its associated elements have a separate table object model, which uses different methods than the general object model. For more information about the table object model, see Building Tables Dynamically.

Windows Internet Explorer 8 renders only tables up to 1000 columns. To force Windows Internet Explorer 7 rendering mode, see How Do I Take Advantage of the New Features in Internet Explorer 8.

Examples

The following code example uses the TFOOT element and the TABLE, TBODY, TD, and TR elements to create a table that includes the first row in the table body and the second row in the table footer.


<table>
<tbody>
  <tr>
    <td>This text is in the table body.</td>
  </tr>
</tbody>
<tfoot>
  <tr>
    <td>This text is in the table footer.</td>
  </tr>
</tfoot>
</table>

See also

Building Tables Dynamically

 

 

Build date: 3/8/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Put TFOOT before TBODY
The correct order of elements: THEAD, TFOOT, TBODY.