Skip to content
Related Articles

Related Articles

Improve Article

HTML | <col> width Attribute

  • Last Updated : 28 Jun, 2019
Geek Week

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

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :