Search w3schools.com:

SHARE THIS PAGE

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 examples at the bottom of this page)

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The <frameset> tag is supported in all major browsers.


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


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


Standard Attributes

The <frameset> tag supports the following standard attributes in HTML 4.01:

Attribute Value Description
class classname Specifies a classname for an element
id id Specifies a unique id for an element
style style_definition Specifies an inline style for an element
title text Specifies extra information about an element

More information about Standard Attributes.


Event Attributes

The <frameset> tag supports the following event attributes in HTML 4.01:

Attribute Value Description
onload script Script to be run when a document load
onunload script Script to be run when a document unload

More information about Event Attributes.


Examples

Try it Yourself - Examples

Horizontal frameset
How to make a horizontal frameset with three different documents.

Mixed frameset
How to make a frameset with three documents, and how to mix them in rows and columns.

Frameset with noresize="noresize"
How to use the "noresize" attribute. The frames are not resizable. Move the mouse over the borders between the frames and notice that you can not move the borders.


Related Pages

HTML DOM reference: Frameset object




W3Schools Certification

W3Schools' Online Certification

The perfect solution for professionals who need to balance work, family, and career building.

More than 10 000 certificates already issued!

Get Your Certificate »

The HTML Certificate documents your knowledge of HTML.

The HTML5 Certificate documents your knowledge of advanced HTML5.

The CSS Certificate documents your knowledge of advanced CSS.

The JavaScript Certificate documents your knowledge of JavaScript and HTML DOM.

The jQuery Certificate documents your knowledge of jQuery.

The XML Certificate documents your knowledge of XML, XML DOM and XSLT.

The ASP Certificate documents your knowledge of ASP, SQL, and ADO.

The PHP Certificate documents your knowledge of PHP and SQL (MySQL).

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]