Table Footer | WebReference

Table Footer

HTML 4.01 Element Reference

By Lee Underwood

Return to HTML 4.01 element index page

Name: Table Footer

<tfoot> ... <tfoot> (opt.)

Description: Used to group together rows within the footer of a table in order to apply common attributes to each cell.

Browser Compatibility: NN: 6.0+ / IE: 4.0+

Attributes:
  • align
  • char
  • charoff
  • class
  • dir
  • id
  • lang
  • onclick
  • ondblclick
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmousemove
  • onmouseout
  • onmouseover
  • onmouseup
  • style
  • title
  • valign

Code Example:

<table>
<tfoot class="sec2" valign="bottom">
  <tr>
    <td> ... </td>
    <td> ... </td>
  </tr>
<tfoot>
<tbody class="sec1" valign="top">
  <tr>
    <td> ... </td>
    <td> ... </td>
    <td> ... </td>
  </tr>
<tbody>
</table>

Comments: The <tfoot> element must appear before the <tbody> to enable the user agent to correctly render it.

XHTML Notes: The closing </tfoot> element is required.




Created: March 15, 2005

URL: http://webreference.com/html/reference/specs/