Difference between revisions of "Th (HTML element)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
Line 5: Line 5:
 
== Description ==
 
== 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 (HTML element)|td element]]''': standard cells, contains data
 +
** Text in '''td''' elements are regular and left-aligned by default
  
 
== See also ==
 
== See also ==
Line 11: Line 17:
 
* [[HTML elements]]
 
* [[HTML elements]]
 
* [[Tables (HTML)]]
 
* [[Tables (HTML)]]
 +
* [[Td (HTML element)]]
  
 
== External links ==
 
== External links ==

Revision as of 06:01, 23 May 2016

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