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> |
chevron_right
filter_none
Output:

Supported Browsers: The browser supported by HTML <frameset> cols Attribute are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Safari
- Opera
Recommended Posts:
- HTML | cols Attribute
- HTML | <textarea> cols Attribute
- HTML | DOM Textarea cols Property
- How to hide text-overflown as ellipsis using dynamic bootstrap cols ?
- HTML | <html> xmlns Attribute
- HTML | scoped Attribute
- HTML | <th> valign Attribute
- HTML | <col> align Attribute
- HTML | poster Attribute
- HTML | Class Attribute
- HTML | style attribute
- HTML | <area> target Attribute
- HTML | oninvalid Event Attribute
- HTML | <select> autocomplete Attribute
- HTML & CSS | Tabindex attribute & Navigation bars
- HTML | <table> bgcolor Attribute
- HTML | onsubmit Event Attribute
- HTML | onunload Event Attribute
- HTML | srcdoc Attribute
- HTML | Marquee truespeed attribute
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


