<frameset>


HTML <frameset> Tags - HTML5 Not supported

##Instance

<!DOCTYPE html>
<html>

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

</html>

Run instance»Click the "Run instance" button to view the online instance


Browser support

1000.png ##All major browsers support the <frameset> tag.

Tag definition and usage instructions

HTML5 does not support the <frameset> tag.


<frameset> tag defines a frameset.

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

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

Note:

If you wish to validate pages containing frames, make sure <!DOCTYPE> is set to "HTML Frameset DTD" or "XHTML Frameset DTD".

Differences between HTML and XHTML

None.

Optional attributes

AttributescolspixelsHTML5 is not supported. rowspixelsHTML5 is not supported.
ValueDescription
% *

Specifies the number and size of columns in the frameset.
% *

Specifies the number and size of rows in the frameset.

Standard attributes

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

Attributesclassclassnameididstylestyle_definitiontitletext

For a complete description, please visit the standard properties.


Event attributes

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

ValueDescription
Specifies the class name of the element
Specifies the unique id of the element
Specifies the inline style of the element
Specifies additional information for the element
AttributesValueDescription
onloadscriptWhen the document is loaded Execute script
onunloadscriptExecute script when document is unloaded

For a complete description, visit the event properties.

Try it - Example

Horizontal Frame
This example demonstrates: how to use three different documents to make a horizontal frame.

Instance

<!DOCTYPE html>
<html>

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

</html>

Run Instance»

Click the "Run Instance" button to view the online instance

Mixed Structure Frame
This example demonstrates how to create a frame structure containing three documents and mix them into rows and columns.

Instance

<!DOCTYPE html>
<html>

<frameset rows="50%,50%">
  <frame src="frame_a.htm">
  <frameset cols="25%,75%">
    <frame src="frame_b.htm">
    <frame src="frame_c.htm">
  </frameset>
</frameset>

</html>

Run Instance»

Click the "Run Instance" button to view the online instance

Frame structure containing noresize="noresize" attribute
This example demonstrates the noresize attribute. In this case, the frame is not resizable. Drag your mouse over the border between frames and you'll find that the border cannot be moved.

Instance

<!DOCTYPE html>
<html>

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

</html>

Run Instance»

Click the "Run Instance" button to view the online instance


Related articles

HTML DOM reference manual: Frameset object