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:
html
Output:
Supported Browsers: The browser supported by HTML <frameset> cols Attribute are listed below:
<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>
<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>
Supported Browsers: The browser supported by HTML <frameset> cols Attribute are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Safari
- Opera