<frameset>
HTML <frameset> Tags - HTML5 Not supported
<!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
##All major browsers support the <frameset> tag.
Tag definition and usage instructionsHTML5 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 XHTMLNone.
Optional attributesValue | Description | |
---|---|---|
pixels |
%
* | HTML5 is not supported. Specifies the number and size of columns in the frameset. |
pixels |
%
* | HTML5 is not supported. Specifies the number and size of rows in the frameset. |
Standard attributes
In HTML 4.01, the <frameset> tag supports the following standard attributes:
Value | Description | |
---|---|---|
classname | Specifies the class name of the element | |
id | Specifies the unique id of the element | |
style_definition | Specifies the inline style of the element | |
text | Specifies additional information for the element |
Attributes | Value | Description |
---|---|---|
onload | script | When the document is loaded Execute script |
onunload | script | Execute 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