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 -

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>
		<title>Frameset example</title>
		<frameset cols="20%,20%,25%,*">
			<frame src="frame1.htm">
			<frame src="frame2.htm">
			<frame src="frame3.htm">
			<frame src="frame4.htm">

Output -