UNSUPPORTED
in HTML5
Tag Description
The frameset tag is used to define a frameset. The frameset element holds two or more frame elements. Each frame element holds a separate document.
The <frameset>
element indicates how many rows or columns there will be in a frameset.
This tag has the form:
<frameset cols="column width list" rows="row width list">
</frameset>
Note: The <body>
element cannot be used together with the <frameset>
element.
HTML5 and HTML4.01 Differences
Not supported in HTML5.
Attributes
Attribute | Value | Description |
---|---|---|
cols | pixels % * |
(default: 100%) Specifies the number and size of columns in a frameset. Multiple values are separated by commas |
rows | pixels % * |
(default: 100%) Specifies the number and size of rows in a frameset. Multiple values are separated by commas |
Global Attributes
Attribute | Value | Description |
---|---|---|
class | classname | Sets the classname of the element |
id | id | Sets a unique id for the element |
style | style_def | Sets the inline style of the element |
title | text | Sets extra information about the element |
Event Attributes
Attribute | Value | Description |
---|---|---|
onload | script | Executes script when a document loads |
onunload | script | Executes script when a document unloads |
Examples
The following example shows the basic use of this tag:
<html>
<frameset cols="30%,70%">
<frame src="left_frame.htm" />
<frame src="right_frame.htm" />
</frameset>
</html>
Browser Support
Chrome | Firefox | IE | Safari | Opera |
---|---|---|---|---|
Doctype Declaration Support
The following table lists the doctype declarations this element may appear in:
HTML4.01 / XHTML1.0 | XHTML 1.1 | HTML 5 | ||
---|---|---|---|---|
Traditional | Strict | Frameset | ||
Miscellaneous Information
Defined In: | HTML4.01 |
---|---|
Empty Tag: | No |