By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

HTML Frameset Tag

Is used to define a set of frames in a page.

Edited: 2014-12-28 07:04

The Frameset Element is used to define a set of frames in a page. The frameset element replaces the body element, pages which are using frames should use the frameset doctype.


Better results can often be achieved using HTML div elements to devide a page into several sections, CSS can be used to give the elements a scroll-bar. Using div elements allow for better indexing in search engines, and are more user-friendly then frames.


Standard Attributes.

AttrsOther AttributesCommon, I18n, EventSTF
rowsLength UnitsList of LengthsF
colsLength UnitsList of LengthsF
onloadScriptAll the frames have been loadedF
unonloadScriptAll the frames have been unloadedF

DTD. Defines which document type the attribute is allowed. S=Strict, T=Transitional, F=Frameset.


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"

    <title>My first Frameset</title>

  <frameset cols="25%,75%">
    <frame src="First-Page.html">
    <frame src="Second-Page.html">



Extra examples dealing with Frames.

  1. Ad friendly 3column layout in Frames

Because frames are so rarely used, layout examples will be included here, or posted as comments.