Quackit Logo

HTML frameset Tag

 

The HTML frameset tag is used to separate the window into frames. For example, you can have a left frame for navigation and a right frame for the main content.

Also see HTML iframe tag for inline frames, and HTML noframes tag for how to deal with browser that don't support frames.

Example
<html>
<head>
<title>Frameset page<title>
</head>
<frameset cols = "25%, *">
  <noframes>
  <body>Your browser doesn't support frames.
  Therefore, this is the noframe version of the site.</body>
  </noframes>
  <frame src ="/html/tags/frame_example_left.html" />
  <frame src ="/html/tags/frame_example_right.html" />
</frameset>
</html>
View the result
Attributes:
Attributes specific to this tag:
AttributeDescription
rowsSpecifies the number of rows and their height in either pixels, percentages, or relative lengths. Default is 100%
colsSpecifies the number of columns and their width in either pixels, percentages, or relative lengths. Default is 100%
Other Attributes:
AttributeDescription
classDocument wide identifier.
idDocument wide identifier
titleSpecifies a title to associate with the element. Many browsers will display this when the cursor hovers over the element (similar to a "tool tip").
styleInline style (CSS)
onloadIntrinsic event (see event handlers)
onunloadIntrinsic event (see event handlers)

Also see the complete list of HTML tags


Enjoy this website?

  1. Link to this page (copy/paste into your own website or blog):
  2. Add this page to your favorite social bookmarks sites:
                     
  3. Add this page to your Favorites

Oh, and thank you for supporting Quackit!