Open In App
Related Articles

HTML | <thead> valign Attribute

Improve Article
Save Article
Like Article

The HTML thead valign Attribute is used to specify the vertical alignment of content inside the thead Element.


<thead valign="top | middle | bottom | baseline">

Attribute values:

  • top: It sets the content to top-align.
  • middle: It sets the content to middle-align.
  • bottom: It sets the content to bottom-align.
  • baseline: It sets the content to baseline. The baseline is the line where most of the characters sit. It has a default value.

Note : The HTML

valign attribute is not supported by HTML 5.


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


Supported Browsers: The browsers supported by HTML <thead> valign Attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Apple 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 : 25 Feb, 2022
Like Article
Save Article
Similar Reads
Related Tutorials