description & Usage
The <th> tag forms the main cell of a <table> tag.
The text loaded in the <th> tag is automatically larger (more pixels) and in a more specific position (in the middle of the fold) compared to other cells.
Browser compatibility and Support
# | Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
<th> |
Attributes
Attributes | Values | Description |
---|---|---|
colspan |
number
|
en |
headers |
header-id
|
en |
rowspan |
number
|
en |
scope |
col , colgroup , row , rowgroup
|
en |
Global Attributes
The th tag supports the HTML Global Attributes.
Event Attributes
The th tag supports the HTML Event Attributes.
More Examples
Default CSS
Most browsers will display the th tag with the following default style: