Skip to content
Related Articles

Related Articles

Improve Article

HTML | <frameset> cols Attribute

  • Last Updated : 29 May, 2019

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.

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

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 :