English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

HTML Tag Reference

HTML: <frameset> cols Attribute

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.

 HTML <frameset> tag

Online Example

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 ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the cols attribute.

Definition and Usage

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>.

Syntax

<frameset cols="pixels|%|*">

Attribute Value

ValueDescription
pixelsSpecify 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.
HTML <frameset> tag