thead tag

<Thead>

Explanation

Thead tag inserts the header content or title in table.
<table border="Value"> <thead>
<tr>
<th>Text</th>
<th>Text</th>
<th>Text</th>
</tr> </thead> </table>

Example Code:

Result :

Airline From - To Price
Kingfisher Chennai to Mumbai 10000
Jet Airways Kochi to Kolkata 12500
Spicejet Delhi to Bangalore 11000

  • It wont affect the structure of the table, even if this tag is removed.
  • <td> cannot be added inside this input.
  • One or more <tr> elements can be placed inside this input.
  • It should be inserted before <tbody>, <tfoot> and <tr> elements.
It is available in the previous versions of HTML.
It supports both Global Attributes and Event Attributes in HTML5.

Limitations:

It is applicable to all major browsers.

Ask Questions

Ask Question