English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The cols attribute specifies the size and number of columns in the <frameset>, and the width of each frame is defined in the cols attribute of the comma-separated list.
A three-column frame:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>HTML <frameset> cols Attribute Usage-Basic Tutorial(oldtoolbag.com)</title> </head> <body> <frameset cols="25,%*,25%"> <frame src="frame_a.htm"> <frame src="frame_b.htm"> <frame src="frame_c.htm"> </frameset> </form> </body> </html>Test it out ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the cols attribute.
HTML5 The <frameset> tag is not supported.
The cols attribute specifies the size and number of columns in <frameset>.
The width of each frame is specified in the cols attribute of the comma-separated list.
Note:Once the number of cols attribute values is specified, it defines the number of columns in <frameset>.
<frameset cols="pixels|%|*">
Value | Description |
---|---|
pixels | Specify the column size in pixels (for example "100px" or just "100"). |
% | Specify the column size as a percentage of available space (for example "50%"). |
* | The remaining available space will be allocated to the column. |