<thead> tag in HTML

The <thead> (table header) tag is used to contain inline elements of an HTML table. The <thead> element is used to specify a part of a table header.

Important Description

  • The <thead> element must have contain one or more <tr> elements.
  • Open tag is required BUT close tag of <thead> optional.

Example of <thead> tag

Result Look Like

Month Salary Monthly_Saving
January $1000 $200
February $1000 $200
March $1000 $200
Total_Salary $3000 $600

<thead> Tag Browser Support

Element Chrome Edge Firefox Safari Opera
<thead> Yes Yes Yes Yes Yes

Global Attributes

Event Attributes

Attributes

The "align", "charoff", and "valign" attributes are not supported in HTML5:

Attribute Value Description
align right
left
center
justify
char
Align attribute specifies the content inside the <thead> element
charoff number Charoff attribute Sets the number of characters the content inside the <thead> element
valign top
middle
bottom
baseline
Valign attribute define the content aligns inside the <thead> element

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

© 2023 GDATAMART.COM (All Rights Reserved)