Frames Tutor- Introduction Frames Tutor by Joe Barta PROFESSIONAL WEB DESIGN Also available: Form Tutor, Table Tutor and for the novice- So, you want to make a Web Page! Hello. My name is Joe and I'm going to give you a few simple lessons on how to make frames for your web documents. The intelligent use of frames can give your pages a cleaner look and make them easier to navigate. Note the operative word is intelligent. Nuff said? Dividing a page into frames is actually quite simple. The basic concept goes like this: Each frame is a regular, complete html document. If you wanted to divide your page into 2 side by side frames, then you would put one complete html document in the left frame and another complete html document in the right frame. In addition you need to write a third html document. This MASTER PAGE (I'm coining a new phrase here folks) contains the tags that specify what goes where. As a matter of fact, that's its only function. There are only two main frame tags to contend with:
You have to visit my friend Shannon Then add the link, and save it.
You have to visit my friend Shannon Now try it.
You have to visit my friend Shannon This will cause the link to load into the window named WINDOW-1. VIEW IT That kind of linking is great when you want to link together pages in your site. But what if you want to link to something outside your site? Let's add another link to Beth's page.
You have to visit my friend Shannon
And of course you have to visit Joe at Professional Web Design
VIEW IT As you can see, this causes someone elses page to load into your window How can you make an outside link load into the full browser window? Easy, change the TARGET to _top.
VIEW IT Always use this method when linking to an outside page. Believe me, your viewers will appreciate it! _top is one of 4 so-called 'magic targets'. They are _self, _blank, _parent and _top. These are the only targets that can begin with something other than an alpha-numeric character. In addition, any target beginning with an underscore_ that is not one of the 'magic targets' will be ignored. For what we're doing, _top is the only one to concern ourselves with now. Note- It is important to specify TARGET="_top" rather than TARGET="_TOP". Normally HTML is not case-sensitive but in this instance it is. Using _TOP instead of _top will sometimes cause the link to open in a new browser rather than the full window of the existing browser. Since it's been mentioned, that's what TARGET="_blank" does.... loads a link into a new browser window. <--BACK NEXT--> Introduction Lesson Lesson Lesson Lesson Lesson Lesson Lesson 1 2 3 4 5 6 7 PROFESSIONAL WEB DESIGN ---------- Lesson 5 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.
Go here or there
or visit Yahoo Netscape VIEW directry.html VIEW Master Page Now add the link information.
or visit Yahoo Netscape VIEW directry.html VIEW Master Page Wasn't THAT fun! No I suppose it wasn't. Take 5. Stretch, go pee, get cup of coffee, scratch yer butt, whatever. Take a break. I am. <--BACK NEXT--> Introduction Lesson Lesson Lesson Lesson Lesson Lesson Lesson 1 2 3 4 5 6 7 PROFESSIONAL WEB DESIGN ---------- Lesson 6 OK, let's make home.html, here.html and there.html. Since you've been working very hard (and I'm sick of typing), just go ahead and copy the following into Notepad and save them. Save the following as home.html
VIEW home.html Save this as here.html
or visit Yahoo Netscape Now try your Master Page. Works pretty good, doesn't it! Now just for giggles, let's add a link from your home page to me at Professional Web Design. Open up home.html and plug it in. Make sure you add the proper TARGET because although I really like you, I don't want to show up in your window.
Visit Joe at Professional Web Design. View the finished product. <--BACK NEXT--> Introduction Lesson Lesson Lesson Lesson Lesson Lesson Lesson 1 2 3 4 5 6 7 PROFESSIONAL WEB DESIGN ---------- Lesson 7 (last one!) Well folks, that's it! For this tutorial that is. You have learned everything you need to create Framed pages. There is a little more, but 95% of what you'll need to do can be done with what was covered in this tutorial.. Be sure to check out Form Tutor and Table Tutor! Here are some excellent materials that you may want to have a look at. The HTML Reference Library An outstanding html guide and reference source in windows HELP format. I use it all the time. You may even want to visit their homepage. Beginner's Guide to HTML A good concise guide that explains the basics very well. I keep a copy and still refer to it on occasion. Barebones Guide to HTML Another outstanding guide that you will want to keep within easy reach. HTML Elements List For the technoids. From Sandia National Laboratories. A very, very complete listing of html tags. The Web Developer's Virtual Library A great source of information touching on all aspects of web and site design. If you need stuff for your pages... ...like backgrounds, bullets, images, sounds, JavaScript or whatever, come by our Web Page Resources section. Help yourself to armloads of stuff! <--BACK ???--> Introduction Lesson Lesson Lesson Lesson Lesson Lesson Lesson 1 2 3 4 5 6 7 PROFESSIONAL WEB DESIGN ---------- For those that may have looked at the source of "MY FRAMZ PAGE" and found some absolute dimensions (incorect absolute dimensions at that)... I just wanted to include a note to say I deliberately did that so that it would look equally screwed up to everyone. The screw-up you see is what happens when someone using a 800x600 monitor designs a page using % dimensions for images OR uses absolute dimensions without an elastic frame. When a person using 640x480 (like me) gets it, the images are all chopped off. ---------- End of Document