Open In App
Related Articles

HTML | <thead> align Attribute

Improve Article
Save Article
Like Article

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


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

Note: This attribute has been DEPRECATED and is no longer recommended.

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

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Last Updated : 06 Jun, 2022
Like Article
Save Article
Similar Reads
Related Tutorials