1. Home
  2. Computing & Technology
  3. Web Design / HTML

<frameset></frameset>

By , About.com Guide

<frameset> Description:

The <frameset> element defines the container for a framed Web page.

<frameset> Web Browser Support:
<frameset> Attributes:
<frameset> End Tag:
</frameset> REQUIRED
<frameset> Contents:

frames and noframes content The following tags are valid within the <frameset> tag:

  • frame
  • frameset
  • noframes
<frameset> Valid Context:

The <frameset> tag is valid within the following tags:

  • frameset
  • HTML
<frameset> Usage:
  • three column frameset
    <frameset cols="30%,20%,*" scrolling="auto">
       <frame src="frame1.html">
       <frame src="frame2.html">
       <frame src="frame3.html">
    <noframes>
    noframes content
    </noframes>
    </frameset>
  • nested frameset (to create a top row, and two columns in the bottom row)
    <frameset rows="50,*">
       <frame src="topframe.html">
       <frameset cols="100,*">
          <frame src="leftframe.html">
          <frame src="rightframe.html">
       </frameset>
    <noframes>
    noframes
    </noframes>
    </frameset>
<frameset> Special Notes:
  • Be careful of the attributes you use in your frameset. The above attributes that are not marked as HTML 4.0 are not part of the specification.
  • If you use frames, you must use the frameset DTD:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
  • When using frames, remember that they are not accessible, and you should always use a <noframes> section.
  • Because the two major browsers use different codes for the frameborder it's a good idea to use the attribute twice (see example above).
More <frameset> Information:
Explore Web Design / HTML
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

©2009 About.com, a part of The New York Times Company.

All rights reserved.