Tables

th

Defines a table header cell inside a table. Text in this tag is rendered in bold by default. This tag must be inside a table row(tr) element.

Syntax

<th attributes> ... </th>

Example

<table>
   <tr>
      <th>Header one</th>
      <th>Another header</th>
   </tr>
   <tr>
      <td>Data cell</td>
      <td>Another data cell</td>
   </tr>
</table>

Related tags

CSS Properties

HTML attributes

Search the Soup!