<th>

The table header cell element labels a row or column of data.

Since HTML 3.2 Spec ↗

Syntax

<th scope="col">...</th>

Examples

<tr>
  <th scope="col">Name</th>
  <th scope="col">Email</th>
</tr>
Output
Renders two bold, centered header cells that label the columns below.

Notes

Always set scope="col" or scope="row" so screen readers associate data cells with their headers. Use headers/id for complex tables.

Browser & runtime support

EnvironmentSince version
chrome 1.0
firefox 1.0
safari 1.0
edge 12

See also