WGB Logo

BASIC HTML :: TABLES :: FONTS :: FONT SIZES
COLORS :: GRAPHICS :: LINKING :: MUSIC
FORMS :: LISTS :: FRAMES
REMOTE LOADING :: TIPS & TRICKS

FRAMES

Frames are used when you want to break
up a screen with two or more different
pages. If you want to break up the page
into 2 different pages you need to write
THREE pages for your frame to work.
You can divide the frames in either Columns
or Rows. Frames always read from left to right.

FRAMSET: starts the frame page.
COLS: Says you want to have the frames
in Columns. This will be defined in
percentages. ROWS: Says you want the
frame in rows. FRAME SRC: is the source
of the frame. This will be defined in
percentages.
You need a FRAME SRC for each frame you use.
/FRAMESET: Ends the frame.

The code to define the frames is:
<FRAMESET COLS="25%,75%">
<FRAME SRC="page1.html">
<FRAME SRC="page2.html">
</FRAMESET >
Click here to see this
example.

To add a row going across the top:
<FRAMESET rows="25%,75%">
<FRAME SRC="page3.html">
<FRAMESET cols="25%,75%">
<FRAME SRC="page1.html">
<FRAME SRC="page2.html">
</FRAMESET>
</FRAMESET>

Click here to see this
example.

You can also use FRAME BORDER and set it
to 0 so the frames do not show.
<FRAMESET rows="25%,75%" border=0>
Click here to see this
example.

You can add Scrolling with a yes or no
to either add the scrolling bar or not
have a scrolling Bar.
<FRAMESET rows="25%,75%" SCROLLING=YES>
Or use the NORESIZE, which prevents surfers
from changing the size of the frame.
<FRAMESET rows="25%,75%" NORESIZE>

There are still browsers that do not
handle frames, or you might even want to
give your viewer the option.
Before you end your last Frameset add in
<NOFRAME>
Click <a > here </a>
to view with out frames.
</NOFRAME>

These two tags will give you control
over your frames: NAME and TARGET. If
you want the computer to send data to
another frame cell use The NAME tag:
<FRAMESET rows="25%,75%">
<FRAME NAME="A" SRC="page3.html">
<FRAMESET cols="25%,75%">
<FRAME NAME="B" SRC="page1.html">
<FRAME NAME="C" SRC="page2.html">
</FRAMESET>
</FRAMESET>
Once they are named you can use the
TARGET tag to put in the Hyperlinks
you want.
<a Href="http://www.filename.com" TARGET="C">
Once you click on this link Your frame
NAME A will remain the same but NAME C
will receive the new information.

To leave a frame page completely use
this code:
<a href="http://www.filename.com" TARGET="TOP">

All help files are printable so feel free to print them.

Back to Top

  Rights for Artists Supporter

WGB Creations Button


Featured 4/9/99
in:
Miningco Button

Designed by a
Member of the:


The HTML Writers Guild

WGB Paint Lady

 


This page is Copyright © WGB Creations
All rights reserved.
None of these site graphics may be duplicated,
copied, uploaded to another server or linked to.

This page was last updated 05/11/2003