Summary -

In this topic, we described about the <frameset> tag along with detailed example.

The <frameset> tag is not supported in HTML5. Define a Frameset. The <frameset> tag used to define a frameset. <frameset> contains frames(<frame>).

A <frameset> can contain multiple <frame> elements. Each <frame> element can have different attributes and refer to the separate document. The <frameset> element specifies the frames number and occupancy.

Syntax -

<frameset>.. text here.. </frameset>

Optional Attributes -

AttributeDescriptionValues
ColsSpecifies the number and size of columns in a frameset.Pixels%*
RowsSpecifies the number and size of rows in a frameset.Pixels%*

Example -

<!DOCTYPE html>
<html>
	<head>
		<title>Frameset example</title>
	</head>
	<body>
		<frameset cols="20%,20%,25%,*">
			<frame src="frame1.htm">
			<frame src="frame2.htm">
			<frame src="frame3.htm">
			<frame src="frame4.htm">
		</frameset>
	</body>
</html>

Output -