HTML <frameset> Tag

Not Supported in HTML5

Example

A simple three-framed page:

<frameset cols=”25%,*,25%”>
<frame src=”frame_a.htm”>
<frame src=”frame_b.htm”>
<frame src=”frame_c.htm”>
</frameset>

Try it Yourself »

More “Try it Yourself” examples below.


Definition and Usage

The <frameset> tag is not supported in HTML5.

The <frameset> tag defines a frameset.

The <frameset> element holds one or more <frame> elements. Each <frame> element can hold a separate document.

The <frameset> element specifies HOW MANY columns or rows there will be in the frameset, and HOW MUCH percentage/pixels of space will occupy each of them.

Note: If you want to validate a page containing frames, be sure the <!DOCTYPE> is set to either “HTML Frameset DTD” or “XHTML Frameset DTD”.


Browser Support

Element
<frameset> Yes Yes Yes Yes Yes

Differences Between HTML 4.01 and HTML5

The <frameset> tag is not supported in HTML5.


Differences Between HTML and XHTML

NONE.


Optional Attributes

Attribute Value Description
cols pixels
%
*
Not supported in HTML5.
Specifies the number and size of columns in a frameset
rows pixels
%
*
Not supported in HTML5.
Specifies the number and size of rows in a frameset

HTML <frameset> cols Attribute

Example

A frameset with three columns:

<frameset cols=”25%,*,25%”>
<frame src=”frame_a.htm”>
<frame src=”frame_b.htm”>
<frame src=”frame_c.htm”>
</frameset>

Try it Yourself »


Definition and Usage

The <frameset> tag is not supported in HTML5.

The cols attribute specifies the size of, and the number of columns in a <frameset>.

Each frame’s width is specified in the cols attribute in a comma-separated list.

Note: The number of cols attribute values specified, defines the number of columns in the <frameset>.


Browser Support

Attribute
cols Yes Yes Yes Yes Yes

Syntax

<frameset cols=”pixels|%|*“>

Attribute Values

Value Description
pixels The column size in pixels (like “100px” or just “100”)
% The column size in percent of the available space (like “50%”)
* The rest of the available space should be assigned this column

HTML <frameset> rows Attribute

Example

A frameset with three rows:

<frameset rows=”25%,*,25%”>
<frame src=”frame_a.htm”>
<frame src=”frame_b.htm”>
<frame src=”frame_c.htm”>
</frameset>

Try it Yourself »


Definition and Usage

The <frameset> tag is not supported in HTML5.

The rows attribute specifies the size of, and the number of rows in a <frameset>.

Each frame’s height is specified in the rows attribute in a comma-separated list.

Note: The number of rows attribute values specified, defines the number of rows in the <frameset>.


Browser Support

Attribute
rows Yes Yes Yes Yes Yes

Syntax

<frameset rows=”pixels|%|*“>

Attribute Values

Value Description
pixels The row height in pixels (like “100px” or just “100”)
% The row height in percent of the available space (like “50%”)
* The rest of the available space should be assigned this row

Post Author: Zahid Farid