Tables

thead

Defines the table header in a table. This tag, like foot and tbody allows you to group rows in a table. The grouping of rows enable browsers to have scrolling of the table body independent from the table header and table footer. Notice that this tag requires a table row(tr) element inside it.

Syntax

<thead attributes> ... <thead>

Example

<table>
   <thead>
      <tr>
         <td>Table header text</td>
      </tr>
   </thead>
   <tbody>
      <tr>
         <td>Table body text</td>
      </tr>
   </tbody>
   <tfoot>
      <tr>
         <td>Table footer text</td>
      </tr>
   </tfoot>
</table>

Related tags

CSS Properties

HTML attributes

Search the Soup!