First things first. For this tutorial we will need a few html documents. Fire up Notepad and copy the following to get you started.
<HTML>
</BODY>
<HEAD>
<TITLE>My Framz Page</TITLE>
</HEAD>
<BODY>
</HTML>
<HTML>
<HEAD>
<TITLE>My Framz Page</TITLE>
</HEAD>
<BODY>
Lisa
</BODY>
</HTML>
Note- I will be refering to documents as xxxx.html. Users of Windows 3.x will have to use the file extension .htm when working with documents locally. Many FTP programs allow you to change the filename when uploading if you need to.
Now make another html document.
<HTML>
<HEAD>
<TITLE>My Framz Page</TITLE>
</HEAD>
<BODY>
Terri
</BODY>
</HTML>
Now do the same for Kim, Tina, Shannon, and Beth. Save them just like the others. You should now have a folder that contains 6 complete standalone html documents.
Ok, now the fun stuff... making your master page. Start with this.
<HTML>
<BODY>
</HTML>
<HEAD>
<TITLE>My Framz Page- The Master Page</TITLE>
</HEAD>
</BODY>
Remove the <BODY> tags. The master page doesn't use them...
<HTML>
<HEAD>
<TITLE>My Framz Page- The Master Page</TITLE>
</HEAD>
</HTML>
...it uses <FRAMESET> tags instead.
<HTML>
<FRAMESET>
</HTML>
<HEAD>
<TITLE>My Framz Page- The Master Page</TITLE>
</HEAD>
</FRAMESET>
To keep things a little cleaner, I'm going to stop writing the <HTML>, <HEAD> and <TITLE> tags. Needless to say, keep them in your document.
<FRAMESET>
</FRAMESET>
Now let's start defining just how things are going to look. Tell the browser to split the main window into 2 columns, each occupying 50% of the window.
<FRAMESET COLS="50%,50%">
</FRAMESET>
We must tell the browser what to put in each frame.
<FRAMESET COLS="50%,50%">
<FRAME SRC="lisa.html">
<FRAME SRC="terri.html">
</FRAMESET>
One last thing before we go on. Note that <FRAMESET> is a container tag, and <FRAME> is not. For those that don't know what that means, a container tag has an opening <TAG> and a closing </TAG>.
Introduction | Lesson 1 | Lesson 2 | Lesson 3 | Lesson 4 | Lesson 5 | Lesson 6 | Lesson 7 |
PROFESSIONAL WEB DESIGN |