Open In App

HTML | <frameset> cols Attribute

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:



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:

Article Tags :