Skip to content
Related Articles

Related Articles

Save Article
Improve Article
Save Article
Like Article

HTML | <thead> align Attribute

  • Last Updated : 24 Oct, 2019

The HTML <thead> align attribute is used to set the horizontal alignment of text content inside the table head (thead) section.


Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

<thead align="left|right|center|justify|char">

Attribute Value:

  • left: It sets the text left-align.
  • right: It sets the text right-align.
  • center: It sets the text center-align.
  • justify: It stretches the text to set the width of all lines equal in table head.
  • char: It sets the text-align to a specific character.


<!DOCTYPE html> 
        HTML thead align Attribute 
        h1 { 
            color: green; 
        thead { 
            color: blue; 
        table, tbody, td { 
            border: 1px solid black; 
            border-collapse: collapse; 
        <h2>HTML thead align Attribute</h2
            <!-- thead tag starts from here -->
            <thead align="char" valign="bottom"
                    <th>User Id</th
            <!-- thead tag ends here -->


Supported Browsers: The browser supported by HTML <thead> align attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera

My Personal Notes arrow_drop_up
Recommended Articles
Page :