Example

A simple <th> tag that open PNLdev.com link:

Laboratory

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

Example

HTML A simple code example of the <textarea> tag - Example #1

Laboratory

Example

HTML <th> tag with custom style -Example #2

Laboratory

Example

HTML <th> tag with custom style -Example #3

Laboratory

Example

HTML <th> tag with custom style -Example #4

Laboratory

Example

HTML <th> tag with custom style -Example #5

Laboratory

Example

HTML <th> tag with custom style -Example #6

Laboratory

Example

HTML <th> tag with custom style -Example #7

Laboratory

Example

HTML <th> tag with custom style -Example #8

Laboratory

Default CSS

Most browsers will display the th tag with the following default style: