Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

HTML thead Tag

HTML thead Tag with html tutorial, tags, anchor, img, div, entity, textarea, marquee, p tag, heading tag, h1, h2, table, formatting, attribute, elements, ol, ul, Input Types, block element tag, inline element tag, html tags, phrase tag, head, body, form, lists, symbols etc.

<< Back to HTML

HTML <thead> tag

HTML <thead> elements is used to define header of an HTML table. The <thead> tag is used along with <tbody> and <tfoot> tags which defines table header, table body, and table footer in an HTML table.

The <thead> tag must be child of <table> element, and it must be used before any <tbody>, <tr>, or <tfoot> elements.

The <thead> tag should contain at least one row <tr> element inside it.



Following are some specifications about the HTML <thead> tag

Display Inline
Start tag/End tag Start and End tag
Usage Table header


<!DOCTYPE html>
	<title>HTML thead Tag</title>
	border-collapse: collapse;
	margin: 15px;}
           	 background-color: #d4caca;}
               padding: 12px;}
  <h2>Example of thead tag</h2>
  <table border="1">
  <caption>Population of India</caption>
Test it Now


HTML thead tag


Tag-specific attributes:

Attribute Value Description
align right
It determines the alignment of the content inside the <thead> element. (Not Supported in HTML5)
char Character It specifies the alignment of the content inside the <thead> element to the character. (Not Supported in HTML5)
charoff Number It specifies the number of characters the content that will be aligned from the character specified by the char attribute. (Not Supported in HTML5)
valign top
It determines the vertical alignment of the content inside the <thead> element. (Not Supported in HTML5)

Global attribute:

The <thead> tag supports the Global attributes in HTML.

Event attribute:

The <thead> tag supports the Event attributes in HTML.

Supporting Browsers

Elementchrome browser Chromeie browser IEfirefox browser Firefoxopera browser Operasafari browser Safari
Next TopicHTML time Tag

Related Links:

Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf