Table Header | WebReference

Table Header

HTML 4.01 Element Reference

By Lee Underwood

Return to HTML 4.01 element index page

Name: Table Header

<thead> ... </thead> (opt.)

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

Browser Compatibility: NN: 6.0+ / IE: 3.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>
<thead class="sec1" valign="top">
  <tr>
    <td> ... </td>
    <td> ... </td>
  </tr>
<thead>
<tbody class="sec2" valign="top">
  <tr>
    <td> ... </td>
    <td> ... </td>
    <td> ... </td>
  </tr>
<tbody>
</table>

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




Created: March 15, 2005

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