Skip to content
Related Articles

Related Articles

HTML | <col> align Attribute

View Discussion
Improve Article
Save Article
Like Article
  • Difficulty Level : Basic
  • Last Updated : 18 Feb, 2022

The HTML <col> align Attribute is used to set the horizontal alignment of text content inside the col element. It is not supported by HTML 5.


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

Attribute Values:

  • 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 of paragraph to set the width of all lines equal.
  • char: It sets the text-align to a specific character.


<!DOCTYPE html>
      HTML col align Attribute
      HTML col align Attribute
    <table width="500" border="1">
        <col align="center">


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

  • Google Chrome: Not Supported
  • Internet Explorer: Not Supported
  • Firefox: Not Supported
  • Safari: Not Supported
  • Opera: Not Supported

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!