HTML Reference Guide


Tag Index | Content List | HTML FAQ


How do I make a frame page?

The <FRAMESET> tag is the main container for a frame.When creating a frame "defining" page, you leave out the <BODY> tag and use this tab for each frame. These can be nested to create frames within frames, much like a table. The <FRAME> tag defines a single frame in a frameset. It is not a container so it has no matching end tag.

These are some of the attributes to the <FRAME> tag:

  • src - defines the source URL to be displayed in the frame. If omitted a blank space is displayed in the size of the frame.
  • name - defines a name for the window. Although this is not displayed, it is useful for targeting particular windows with links.
  • marginwidth - gives control of the margin width within a frame, defined in pixels.
  • marginheight - gives control of the margin height within a frame, defined in pixels.
  • scrolling - determines whether the frame contains a scroll bar, defined as "yes, no or auto". Be sure to include if your page may not fit within the frame display area.
  • noresize - specifies that the user cannot change the size of the frame. There is no value assisted with the tag, it's inclusion only. This is optional and all frames are resizeable by default.
  • Example code:

    <FRAMESET COLS="50%, 50%">
    <FRAMESET ROWS="50%,50%">
    <FRAME SRC="cell.html" SCROLLING="yes">
    <FRAME SRC="cell.html" NORESIZE>
    </FRAMESET>
    <FRAMESET ROWS="33%,33%33%">
    <FRAMESRC="cell.html">
    <FRAMESRC="cell.html">
    <FRAMESRC="cell.html">
    </FRAMESET>
    </FRAMESET>

    <NOFRAMES>
    This page is designed for a frames-capable browser. Please see our
    <A HREF="noframes.html">
    noframes version
    </A>.
    </NOFRAMES>


      Home | Super Links | Search | Privacy Statement | Site Map | Contact Us
    Copyright © 1996 - 2009 WebSpawner.com. All rights reserved.