< All the HTML Tags >

<th></th>

Video Coming Soon...

  • th

    Tag Type

    block

    Tag Category

    tables

    Defines a header cell in a table

    Viewed

    1

    Examples

    1

Definition:

The HTML <th> tag defines a header cell in a table, typically rendered in bold and centered.

It provides context for the data in the corresponding columns or rows, enhancing the readability and organization of tabular information.

Incorporating the `<th>` tag correctly improves the clarity and structure of your tables.

Attributes:

colspan, headers, rowspan, scope, Global attributes (e.g., class, id, style)

Accessibility:

Coming Soon…

Default th Example:

Using the <th> tag to create header cells.
<table><tr><th>Header</th></tr></table>

Default th Result:


Coming Soon…

Community Examples:

Coming Soon…
Coming Soon…