Open In App

HTML | <frameset> cols Attribute

Improve
Improve
Like Article
Like
Save
Share
Report

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.

Syntax:

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

Example:




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


Output:

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

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

Last Updated : 17 Dec, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads