HTML Element: <th>
[this page | pdf | back links]
The HTML <th> element indicates a table header
cell (within a table row). They appear inside <tr> elements.
HTML tables contain two types of cells, i.e. header cells (<th> element) and standard cells
(<td> elements),
and the two are by default formatted differently.
The attributes
it can take (in addition to HTML global
attributes and HTML
event attributes) are:
|
Attribute
|
Description
|
More
|
|
colspan
|
Number of columns a
table cell should span
|
Here
|
|
headers
|
One or more header
cells a cell is related to
|
Here
|
|
rowspan
|
Number of rows a table
cell should span
|
Here
|
It used to support the abbr, align,
axis, bgcolor, char,
charoff, height, nowrap,
scope, valign and width
attributes, but these are no longer supported by HTML 5.
To create or access such
an element in JavaScript
see here. The
corresponding HTML DOM
object supports standard
DOM properties and methods. The default style applicable to this element is
shown here.
NAVIGATION LINKS
Contents | Prev | Next | HTML Elements