1. Home
  2. Computing & Technology
  3. Web Design / HTML

<thead></thead>

By Jennifer Kyrnin, About.com

<thead> description:

The <thead> element defines the rows that are part of the head of the table.

<thead> Web Browser Support:

<thead> Attributes:

<thead> End Tag:

</thead> optional

Contents:

Table rows. The following tags are valid within the <thead> tag:
tr

<thead> Valid Context:

The <thead> tag is valid within the following tags:
table

<thead> Usage:

  • table with thead
    <table border width="200">
    <thead>
    <tr><td>
    column 1 in the header row
    </td><td>
    column 2 in the header row
    </td></tr>
    </thead>
    <tbody>
    <tr><td colspan="2">this is the body row</td></tr>
    </tbody>
    </table>

<thead> Special Notes:

  • Long tables can be divided into sections to give more definition to the table.

More <thead> Information:

Return to XHTML element (HTML Tags) Library

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. HTML and XHTML
  5. XHTML
  6. HTML Tags
  7. The thead Element - table row head - XHTML 1.0 HTML 4.0

©2008 About.com, a part of The New York Times Company.

All rights reserved.