Skip to content
Related Articles
Open in App
Not now

Related Articles

HTML | <frameset> cols Attribute

Improve Article
Save Article
  • Last Updated : 17 Dec, 2021
Improve Article
Save Article

The HTML <frameset> cols Attribute is used to specify the size and the number of columns in a frameset. The width of each frame is separated by a comma.

Note: It is not supported in HTML5.


<frameset cols="pixels | % | *">

Attribute Values:

  • pixels: The width of column is set in terms of pixels. Example: “50px” or “50”.
  • %: The width of columns is set in terms of percentage. Example “70%”.
  • *: The width of columns is set to all available space.


<!DOCTYPE html> 
        <title>HTML frameset cols Attribute</title
    <frameset cols = "30%, 40%, 30%"
        <frame name = "top" src = "attr1.png" /> 
        <frame name = "main" src = "gradient3.png" /> 
        <frame name = "bottom" src = "col_last.png" />         


Supported Browsers: The browser supported by HTML <frameset> cols Attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera
My Personal Notes arrow_drop_up
Related Articles

Start Your Coding Journey Now!