Open In App
Related Articles

HTML | <colgroup> valign Attribute

Improve Article
Save Article
Like Article

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


<colgroup 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 HTML5.


<!DOCTYPE html>
        HTML ColumnGroup valign Attribute
        #myColGroup {
            background: green;
        table {
            color: white;
            margin-left: 180px;
            background: yellow;
        #Geek_p {
            color: green;
            font-size: 30px;
        td {
            padding: 10px;
        h2 {
            text-align: center;
    <h1 style="color:green;">
        HTML ColumnGroup valign Attribute
        <colgroup id="myColGroup"


Supported Browsers: The browsers supported by HTML <colgroup> valign attribute are listed below:

  • Internet Explorer

Last Updated : 25 Feb, 2022
Like Article
Save Article
Similar Reads
Related Tutorials