Skip to content
Related Articles

Related Articles

HTML thead Tag

View Discussion
Improve Article
Save Article
Like Article
  • Difficulty Level : Medium
  • Last Updated : 17 Mar, 2022

The <thead> tag in HTML is used to give a header to the group of content of the body. This tag is used in HTML tables 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 vertical alignment of the text content.
  • char: Set the alignment 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 these attributes is in numeric form.



<!DOCTYPE html>
        <h2>thead Tag</h2>
            <!-- thead tag starts from here -->
                <th>User Id</th>
            <!-- thead tag ends here -->


Supported Browsers:

  • Google Chrome
  • Edge
  • Firefox
  • Safari
  • Opera

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!