HTML <thead> Tag

❮ Previous Reference Next ❯

Example

<table>
<thead>
  <tr>
    <th>Heading</th>
    <th>Heading</th>
  </tr>
</thead>
<tbody>
  <tr>
    <td>Data</td>
    <td>Data</td>
  </tr>
</tbody>
</table>

Meaning

The <thead> element identifies header rows at the top of a table, usually containing column labels. It may contain one or more rows of <th> or <td> cells.

Note:

Version: HTML 4, 4.01, 5


Standard Syntax

<thead>...</thead>



Browser Support




Status







Global Attributes

The <thead> element also supports the Global Attributes in HTML.


Event Attributes

The <thead> element also supports the Event Attributes in HTML.


By Default CSS Value(s)

Most of the browsers will display the <thead> element with the following by default value(s)

thead {
  display: table-header-group;
  vertical-align: middle;
  border-color: inherit;
}
❮ Previous Reference Next ❯