HTML

HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes

FAQs

HTML th Tag

HTML th Tag

 

 

The th tag defines a header data cell in an HTML table. There are two types of cells in the HTML Table. These are:-

  • th :- header cells (bold and by default aligned to center)
  • td :- normal cells (regular and by default aligned to left)

 

Attribute Explanation:-

 

Attribute Value Description
abbr text Specifies an abbreviated version of content in header cell.
colspan number Specifies number of columns a header cell should span.
headers header_id Specifies one or more header cells a cell is related to.
rowspan number Specifies number of rows a header cell should span.
scope col
colgroup
row
rowgroup
Decides whether a header cell is a header for a column, row, or group of columns or rows.

 

Syntax:-

 

Its syntax is:- < th >

Code Explanation

All Tutorials related to HTML Tags List

All Sections related to HTML