Skip to content
Related Articles

Related Articles

HTML | <col> width Attribute

Improve Article
Save Article
  • Last Updated : 28 Jun, 2019
Improve Article
Save Article

The HTML <col> width Attribute is used to specify the width of a column element. If width attribute is not set then it takes default width according to content. It is not supported by HTML 5.


<col width="pixels | % | relative_length">

Attribute Values:

  • pixels: It sets the width of table in terms of pixels.
  • %: It sets the width of table in terms of percentage (%).
  • relative_length: It sets the relative width of column element.


<!DOCTYPE html>
    <title>HTML col width Attribute</title>
    <h2>HTML col width Attribute</h2>
    <table border="1">
        <col width="150">
            <col width="100">


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

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

My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!