th (HTML element)

From Wiki @ Karl Jones dot com
Revision as of 06:49, 21 September 2016 by Karl Jones (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

In HTML the th element represents a cell as a header for a group of cells of an HTML table.

The group of cells that the header refers to is defined by the scope and headers attribute.

Description

An HTML table has two kinds of cells:

  • th element: header cell, contains header information
  • Text in th elements are bold and centered by default
  • td element: standard cells, contains data
    • Text in td elements are regular and left-aligned by default

See also

External links