The <th> element

Short for ‘Table Heading’. A single cell of a table containing a heading which indicates what kind of information is contained in the other cells in the same row or column.

Full list of attributes

All the usual HTML global attributes are available

abbr
Optional abbreviated version of header's contents, for use by screen-readers or other assistive technologies when indicating the contents of a data cell.
colspan
The number of columns across which a table heading cell should be spread. Defaults to 1.
headers
A list of IDs of other <th> elements that this element is a subheading of.
rowspan
The number of rows down which a table heading cell should be spread. Defaults to 1.
scope
Indicates what cells the header is intended to label. Valid values are row, col, rowgroup, and colgroup.
sorted
Enables automatic table sorting for this column, and can control which columns have highest priority for sorting, and whether their natural sort order should be reversed.

Further information

The Web Design Academy Contact us

By form

By Phone

+44 (0)113 234 4611

By email

enquiries@thewebdesign.academy

By snail mail

Suite 3 15 South Parade Leeds LS1 5PQ United Kingdom