Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App

Related Articles

HTML | <td> valign Attribute

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

The HTML <td> valign Attribute is used to specify the vertical alignment of text content in a cell.


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

Attribute Value:

  • 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 is a default value.

Note: The <td> valign Attribute is not supported by HTML 5.


<!DOCTYPE html>
        HTML td valign Attribute
    <h2>HTML td valign Attribute</h2>
    <table border="1" width="500">
        <tr style="height:50px;">
            <td valign="top">BITTU</td>
            <td valign="center">22</td>
            <td valign="bottom">CSE</td>
        <tr style="height:50px;">
            <td valign="bottom">RAKESH</td>
            <td valign="center">25</td>
            <td valign="top">EC</td>


Supported Browsers: The browser supported by HTML <td> valign Attribute are listed below:

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

HTML is the foundation of webpages, is used for webpage development by structuring websites and web apps.You can learn HTML from the ground up by following this HTML Tutorial and HTML Examples.

My Personal Notes arrow_drop_up
Last Updated : 22 Feb, 2022
Like Article
Save Article
Similar Reads
Related Tutorials