I think what we'll do now is make a Framed Page from scratch. Nothing fancy, just something like this.
Before we start, let me stress... keep it simple! A site with a bunch of frames and links pointing all over the place is going to be confusing to build and even more confusing to navigate. That said, let's go to it!
First we must think about what we want the end result to be. I think a good simple design would be a banner across the top, a directory window on the left, and the main window on the right. Let's make the Master Page first.
<html> <head> <title>A Practice Page</title> </head> <frameset> </frameset> </html>
Make another new folder and save this as index.html. Also the image we will be using for the banner is the "My Framz Page" image. Grab it from below and save it as framz.gif in your working folder.
Divide the screen horizontally.
<html>
<head>
<title>A Practice Page</title>
</head>
<frameset rows="77,*">
</frameset>
</html>
Note we get 77 by adding a couple pixels to the height of the image. Also note that since we are using an absolute dimension we are including an elastic frame.
Next specify banner.html to go in the top frame (we will make that document in a couple minutes). Also throw in a <frameset> tag pair because we are going to divide that bottom portion further.
<html>
<head>
<title>A Practice Page</title>
</head>
<frameset rows="77,*">
<frame src="banner.html">
<frameset>
</frameset>
</frameset>
</html>
You can run this now but you'll get error messages because it's incomplete.
We will divide the bottom frameset into two sections. We will also specify that the left window contain directory.html and the right window contain home.html. Once again, we have not made these documents so you will still get an error message (or two) (or three).
<html> <head> <title>A Practice Page</title> </head> <frameset rows="77,*"> <frame src="banner.html"> <frameset cols="20%,80%"> <frame src="directory.html"> <frame src="home.html"> </frameset> </frameset> </html>
Since our directory will be in the left frame, and pages will load into the righthand frame, we should name that frame. Its the only one that will have stuff loaded into it so its the only one we really need to name.
<html>
<head>
<title>A Practice Page</title>
</head>
<frameset rows="77,*">
<frame src="banner.html">
<frameset cols="20%,80%">
<frame src="directory.html">
<frame src="home.html" name="MAIN-WINDOW">
</frameset>
</frameset>
</html>
OK. We are done with the master page... for now.
Frames Tutor |
Lessons: Intro 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
Frames Templates HTML 4.0 Reference Barebones HTML Guide |
![]() |