How to make frames pt 3
If you open your "index.html" in a browser, you'll see a frameset! Well done. In this lesson we will examine using the TARGET attribute of the <A> tag to define in which page you want your links to open.
When you make a link, you are probably used to typing <A HREF="somepage.html">Link Text</A> to start with.
Here A is the tag to make a link, and HREF is the attribute that sets where your link goes to.
We will be using another attribute, called TARGET, to define where the page you are linking to opens. Here are the attribute values we will be using:
- "head" - remember we named our top frame "head"? If TARGET is set with this value, your new page will open in the frame that goes accross the top of the window.
- "menu" - we used this name for the small strip on the left hand side. If you want to open a page in there, do so using this value for TARGET
- "main" - we used this name for the big bit in the middle. You'd use this for most of the pages you build
- "_blank" - this is a standard value, which opens the page you are linking to in a new tab on your browser. It is considered good manners to open pages on other websites in a new tab - don't open someone elses content in your frames
So for every link on your page, you need to use an appropriate value for TARGET to put it in the place that you want it.
That's everything for now. Do use the HTML tag help link in the menu (opens on a new page) to find new and fun things to do with tags.
art frames, dammit!