HTML <frameset>Tag -Not supported in HTML5


Examples

Simple three-frame page:

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

Try it Yourself »
(More examples at the bottom of the page)

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

All major browsers support the <frameset> tag.


Definition and Usage

HTML5 does not support the <frameset> tag.

The <frameset> tag defines a frameset.

The <frameset> element is used to organize one or more<frame>elements. Each <frame> has its own independent document.

The <frameset> element specifies how many columns or rows exist in the frameset, and the percentage/pixels occupied by each row and column.

Notes:If you want to validate a page containing frames, make sure<!DOCTYPE>is set to "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 the frameset.
rows pixels
%
*
Not supported in HTML5.Specifies the number and size of rows in the frameset.


Standard Attributes

In HTML 4.01, the <frameset> tag supports the following standard attributes:

Attribute Value Description
class classname Specifies the class name of 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

For a complete description, please visitStandard Attributes。


Event Attributes

In HTML 4.01, the <frameset> tag supports the following event attributes:

Attribute Value Description
onload script Script to be run when the document loads
onunload script Script to be run when the document unloads

For a complete description, please visitEvent Attributes。


Examples

Try it Yourself - Examples

Horizontal Frames
This example demonstrates how to create a horizontal frameset using three different documents.

Mixed Frames
This example demonstrates how to make a frameset containing three documents, and mix them in both rows and columns.

A frameset with the noresize="noresize" attribute
This example demonstrates the noresize attribute. In this example, the frames cannot be resized. Drag the mouse on the border between frames, and you will find that the border cannot be moved.


Related Articles

HTML DOM Reference:Frameset Object

Other Extensions