Ok, now the fun stuff... making your master page. Start with this.
<html> <head> <title>My Framz Page- The Master Page</title> </head> <body> </body> </html>
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> <head> <title>My Framz Page- The Master Page</title> </head> <frameset> </frameset> </html>
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.
Now's a good time to save it. Save it in your folder (with all the girls) as index.html. If you try to open it with your browser now it will be blank. All you have said so far is "This is my Master Page".
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>
This will still be blank, we have one more thing to do before our "system is operational".
We must tell the browser what to put in each frame.
<frameset cols="50%,50%"> <frame src="lisa.html"> <frame src="terri.html"> </frameset>
VIEW IT. You are now the proud parent of a fully functional Framed page!
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>.
|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|