HTML <frameset> Tag

Advertisements


Description

The HTML <frameset> tag is used to divide the window into frames. This tag is not supported in HTML5.

Example

<!DOCTYPE html>
<html>
<head>
<title>HTML frameset Tag</title>
</head>
<body>
<frameset cols="200, *">
      <frame src="/html/menu.htm" name="menu_page" />
      <frame src="/html/main.htm" name="main_page" />
      <noframes>
      <body>
      Your browser does not support frames.
      </body>
      </noframes>
   </frameset>
</html>

This will produce following result, refer the image given below. The left frame is menu.htm and the right one is main.htm::

Specific Attributes

The HTML <frameset> tag also supports following additional attributes:

AttributeValueDescription
cols column sizeSpecifies the number of columns and their width in either pixels, percentages, or relative lengths. Default is 100%
rows row sizeSpecifies the number of rows and their height in either pixels, percentages, or relative lengths. Default is 100%.

Browser Support

ChromeFirefoxIEOperaSafariAndroid
YesYesYesYesYesYes

html_tags_reference.htm