SyntaxStudy
Sign Up

<th>

tag

Defines a header cell in a table. Bold and centered by default. Use scope for accessibility.

Syntax

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

Example

html
<table>
    <tr>
        <th scope="col">Name</th>
        <th scope="col">Score</th>
    </tr>
    <tr>
        <td>Alice</td><td>95</td>
    </tr>
</table>