Skip to content
Related Articles

Related Articles

Improve Article
HTML | thead Tag
  • Difficulty Level : Basic
  • Last Updated : 18 Dec, 2018

The <thead> tag in HTML is used to give header to group of content of body. This tag is used in HTML table as head and body which is known as thead and tbody.


// Table head Contents...


  • align: Set the alignment of the text content.
  • valign: Set the vertically alignment of the text content.
  • char: Set the align of content inside the <thead> element to a character.
  • charoff: It is used to sets the number of characters that will be aligned from the character specified by the char attribute. The value of this attributes are in numeric form.


    <!DOCTYPE html>
            <title>thead tag</title>
                h1 {
                thead {
                table, tbody, td {
                    border: 1px solid black;
                    border-collapse: collapse;
            <h2>thead Tag</h2>
                <!-- thead tag starts from here -->
                    <th>User Id</th>
                <!-- thead tag ends here -->


    Supported Browsers: The browser supported by <thead> tag are listed below:

    • Google Chrome
    • Edge
    • Firefox
    • Safari
    • Opera

    My Personal Notes arrow_drop_up
  • Recommended Articles
    Page :