Now, to begin with, you'll need to open up NotePad or your favorite HTML editor and type in the following: |
---|
<HTML> <HEAD> <TITLE>Frames Page</TITLE> </HEAD> <BODY> Snuffy </BODY> </HTML> |
Now, change the word "Snuffy" in this file, to "Smokey" and save it as smokey.html It will look like this: |
---|
<HTML> <HEAD> <TITLE>Frames Page</TITLE> </HEAD> <BODY> Smokey </BODY> </HTML> |
Now we need to make a third page which will have two links to snuffy.html and smokey.html. |
---|
<HTML> <HEAD> <TITLE>Frames Page</TITLE> </HEAD> <BODY> Knickers <P> <A HREF="smokey.html" TARGET="RIGHT">See Smokey</A><BR> <A HREF="snuffy.html" TARGET="RIGHT">See Snuffy</A> </BODY> </HTML> |
Now we make a master page. This page is what does all the work by defining our frames. You set your FRAMESET and FRAMES
in this master.html and it is what guides the separate frames you have created.
Open a blank HTML file, and place the following into it: |
---|
<HTML> <HEAD> <TITLE>Master Page</TITLE> </HEAD> <FRAMESET> </FRAMESET> </HTML> |
Now that you know how to start your FRAMESET...there are a few attributes for the FRAMESET tag. You will include them within the Tag itself:
We will begin framing with COLUMNS using the COLS="" attribute. Change your HTML to look like this: |
---|
<HTML> <HEAD> <TITLE>Master Page</TITLE> </HEAD> <FRAMESET COLS="20%,80%"> </FRAMESET> </HTML> |
When you use the COLS="20%,80%" attribute in your FRAMESET tag, it designates the Left column to
be 20% of the page width and the Right column will be 80% of the page width. Play with this
to see what best suits how you are setting your frames. This can also be done in Pixels, such
as COLS="120,380".
The knickers.html is where you had the links to snuffy.html and smokey.html, the master page
will tell the direction of the loads. IE: knickers.html will always load on the Left of the page
and snuffy.html will always load on the Right of the page, snuffy.html is a default load, the links
in knickers.html will guide which page you want to see. You need to have a default load for the
main part of the page, you can make it whatever you choose. We could make the default load to
smokey.html, however we chose to make it load snuffy.html.
This will create two frames side by side like this:
See Smokey
Save this file as master.html (or index.html - just be sure not to overwrite any of your previous work!)
Check yours, too, by opening your master.html (or index.html) file in your browser.
Now that you know how to do your FRAME...there are a few attributes for the FRAME tag. You will include them within the Tag itself:
Introducing the FRAME tag below, edit your file so it looks like this:
<HTML>
<HEAD>
<TITLE>Master Page</TITLE>
</HEAD>
<FRAMESET COLS="20%,80%">
<FRAME SRC="knickers.html" NAME="LEFT">
<FRAME SRC="snuffy.html" NAME="RIGHT">
</FRAMESET>
<HTML>
Knickers
See SnuffySnuffy
If you choose to have borderless frames, which in our opinion are very attractive, in your <FRAMESET> tag, do the following: |
---|
<HTML> <HEAD> <TITLE>Master Page</TITLE> </HEAD> <FRAMESET BORDER="0" FRAMEBORDER="0" COLS="20%,80%"> <FRAME SRC="knickers.html" NAME="LEFT"> <FRAME SRC="snuffy.html" NAME="RIGHT"> </FRAMESET> </HTML> |
After your <FRAMESET> tag, do the following, so as to allow people who use non-frame compatabile browsers, and handicap people to view your site easily. |
---|
<HTML> <HEAD> <TITLE>Master Page</TITLE> </HEAD> <FRAMESET BORDER="0" FRAMEBORDER="0" COLS="20%,80%"> <FRAME SRC="knickers.html" NAME="LEFT"> <FRAME SRC="snuffy.html" NAME="RIGHT"> </FRAMESET> <NOFRAMES> <BODY> Place your non-frames page here </BODY> </NOFRAMES> <HTML> |
[ E-Mail Us ]