w3resource

HTML frameset tag and element

1. HTML frameset element defines a window within which subwindows can exist in the form of frames.

2. frame element starts with <frameset> tag and ends with </frameset> tag

3. A number of frames (subwindows) as well as framesets can be defined within frameset element.

Syntax

<frameset> </frameset>

Whether both start and end tags are required

Both start and end tags are required.

Can contain

HTML frameset element can contain other frameset elements or frames.

Can reside within

HTML html element or another frameset element.

Attributes

rows, cols.

Identifiers

id, class.

Title

Title.

Style

Style.

Events

onload, onunload.

Supported doctypes

HTML 4.01 frameset.

Example of using HTML frameset element

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/framset.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>HTML frameset tag example &gt; HTML tutorial | w3resource</title>
</head>
<frameset cols="33%,33%,33%">
<frameset rows="*,50%">
<frame src="page1.html">
<frame src="page2.html">
</frameset>
<frame src="page3.html">
<frame src="page4.html">
</frameset><noframes></noframes>
</html>

Result

html frameset element

View this example in a separate browser window

HTML frameset tag example.

Previous: HTML frame tag and element
Next: HTML noframes tag and element

Test your Programming skills with w3resource's quiz.



Become a Patron!

Follow us on Facebook and Twitter for latest update.

It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.

https://w3resource.com/html/frameset/HTML-frameset-tag-and-element.php