Frames Intro

Frames allow you to show more than one page at the same time.
By using frames you could have one page showing in a left frame and a different page in a right frame.
This has its uses, as the left frame could always show your links to pages that are loaded into the right frame.

Each frame has its own file plus the file that contains the information to create the frameset.
So a " 2 frame " frameset will have 3 files, a " 3 frame " frameset will have 4 files etc. etc.

You can define your frame sizes in pixels or as a percentage of your window size.

Below are some examples:

Two frame
Three FrameThree Frame
Four Frame

These are the more commonly used designs.

There are, as you can imagine, quite a few variations that you can have using the same number of frames

You do not put frameset tags between the body tags.

Not all browsers can accomodate Frames so a NoFrames source should be prepared as well, This is not that important as the main two browsers do support Frames.

The following should be copied into the frameset page and put after the frameset code, enter your own file path and link description

<NOFRAMES>
<BODY>
<P>This text will only appear if your browser cannot use FRAME and FRAMESET elements found in this particular document. You can access the alternative HTML document by selecting this
<A HREF="yourpage.html">Alternative HTML</A> option.
</BODY>
</NOFRAMES>

Attributes

Below are some of the attributes that can be used with frames

Scrolling allows the Frame to enable or disable scrollbars.
Scrolling="yes" scrollbars on.
Scrolling="no" scrollbars off.
Scrolling="auto" is the default value and selects the scrollbars as they are required.

Noresize disables the ability of a Frame to be resized in a browser.
If it is not used a Frame may be resized in a browser by using a mouse to drag it.

Marginwidth allows you to change the width (in pixels) of the left and right margin of the Frame that is being displayed.

Marginheight allows you to change the height (in pixels) of the top and bottom margin of the Frame that is being displayed.

SRC specifies the URL of the document to be shown in the Frame.

NAME is very important when designing a frameset that requires one frame to be used as a menu or navigation aid and another frame to be the viewing area for the selected file.
By assigning a name for each frame in the frameset the name can be used as the target for the link destination.
When a document is called up and the document is required to go to the frame named main the following could be done :

<A HREF="yourpage.htm" TARGET="main"<Your Link</A>

FRAMESET ATTRIBUTESFRAME ATTRIBUTES
FRAMESPACING=" "
FRAMEBORDER="No, Yes "
BORDER=" "
Bordercolor=" "
SCROLLING="NO, YES, AUTO
NORESIZE
MARGINWIDTH="10"
MARGINHEIGHT="20"