The HTML5 th Tag

The HTML5 <th> tag is the tool in adding a header to the table that is placed within an HTML document. It has to be noted that there are two types of cells within a table and these are the following:

Header cells—this is the header detail and use of the HTML5 <th> tag is necessary to be able to add this. For header details, these are automatically in bold and placed on the center.

Standard cells—this is the part where the contents of the cell is placed and the use of <td> element allows the author to do this. The font is regular for the standard elements and it is aligned to the left.

There should be no confusion when the HTML5 <th> tag is used within a document because it has the same functions in HTML4.01. Aside from that, the HTML5 <th> tag is also accepted in the primary web browsers like Internet Explorer, Google Chrome, Safari, Firefox and Opera. The HTML5 <th> tag is also supportive of the Global Attributes and Event Attributes.

Here are the attributes if the HTML5 <th> tag:

Attribute

Value

Description

abbr

text

It is no longer used and supported in HTML5

align

left
right
center
justify
char

It is no longer used and supported in HTML5

axis

category_name

It is no longer used and supported in HTML5

char

character

It is no longer used and supported in HTML5

charoff

number

It is no longer used and supported in HTML5

colspan

number

It is the key in determining the number of columns that a header cell has to span

headers

header_id

It is the key in specifying one or more header cells that a certain cell is related to

height

pixels
%

It is no longer used and supported in HTML5

nowrap

nowrap

It is no longer used and supported in HTML5

rowspan

number

It is the key in determining the number of rows that a header cell has to span

scope

col
colgroup
row
rowgroup

This enables the author to determine if a header cell is for a certain column, row or group of columns or rows

valign

top
middle
bottom
baseline

It is no longer used and supported in HTML5

width

pixels
%

It is no longer used and supported in HTML5

 

Featured pages

Overview

Learn about HTML5 architecture, design principles and patterns on HTML5 Overview Tutorial. Become …

Tags

Learn about HTML5 tags and discover a new list of HTML5 tags. Find out about HTML5 tags support by…

Welcome

 Learn HTML5 development techniques, tips and tricks on our website. Find out what is required…

Date Time Picker

HTML5 forms use date and time controls regularly. HTML5 date and time controls are used by booking …