HTML tag - Not supported in HTML5
Example
A simple page with three frames:
Try it »
(More examples are at the bottom of the page)
Browser support

All major browsers support the tag.
Tag Definition and Usage Notes
HTML5 does not support the tag.
The tag defines a frameset. The element is used to organize one or more [](tag-frame.html) elements. Each has its own independent document. The element specifies how many columns or rows exist in the frameset, as well as the percentage/pixels occupied by each row and column.
**Note:** If you want to validate a page that contains frames, make sure is set to "HTML Frameset DTD" or "XHTML Frameset DTD".
Differences between HTML and XHTML
none.
Optional Attributes
| property |
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 tag supports the following standard attributes:
| property |
Value |
Description |
| class |
classname |
Specifies the class name of an element |
| id |
id |
Specifies the unique id of an element |
| style |
style_definition |
Specifies the inline style of an element |
| title |
text |
Specifies extra information about an element |
For a complete description, please visitStandard Attributes.
Event attribute
In HTML 4.01, the tag supports the following event attributes:
| property |
Value |
Description |
| onload |
script |
Execute a script when the document is loaded |
| onunload |
script |
Execute a script when the document is unloaded |
For a complete description, please visitEvent attribute.
Try it - Example
Horizontal frames
This example demonstrates how to create a horizontal frame using three different documents.
Mixed-structure frames
This example demonstrates how to create a frameset with three documents, mixing them in rows and columns.
A frameset with the noresize="noresize" attribute
This example demonstrates the noresize attribute. In this example, the frames cannot be resized. If you drag the mouse over the border between the frames, you will find that the border cannot be moved.
Related Articles
HTML DOM Reference Manual: Frameset Object