Easy Tutorial
❮ Att Global Contenteditable Av Prop Ended ❯

HTML <frameset> Tag

Example

A simple three-frame page:


Browser Support

All major browsers support the <frameset> tag.


Tag Definition and Usage

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 are in the frameset and the percentage/pixels each row or column occupies.

Note: If you want to validate a page that contains frames, make sure the <!DOCTYPE> is set to "HTML Frameset DTD" or "XHTML Frameset DTD".


Differences Between HTML and XHTML

None.


Optional Attributes

Attribute Value Description
cols pixels<br> %<br> * HTML5 does not support. Specifies the number and dimensions of columns in the frameset.
rows pixels<br> %<br> * HTML5 does not support. Specifies the number and dimensions 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 a class name 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

For a complete description, visit Standard 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 is loaded
onunload script Script to be run when the document is unloaded

For a complete description, visit Event Attributes.


Try It - Examples

Horizontal Frames

Mixed Structure Frames

Frameset with noresize="noresize" Attribute


Related Articles

HTML DOM Reference: Frameset Object

❮ Att Global Contenteditable Av Prop Ended ❯