FRAMES is the HTML extension that Netscape developed to divide a page up into several sub-pages. The subpages (aka Child pages) are NORMAL HTML documents. There is nothing special about any webpage that is loaded into a FRAMESET, only the ONE HTML document that actually draws the FRAMESET (aka, the Parent page) is unique. I have an exaggerated example of a FRAMESET.
What does the HTML look like for FRAMES?
Typically the parent document will look like this (You can see this for yourself if you're at a page that uses frames and, in Netscape, you go to VIEW at the top of the browser and then DOCUMENT SOURCE. This will show you only the HTML that makes the frames. The other documents are contained in other files loaded INTO the frameset):
< HEAD>
< TITLE>Title of Webpage
< META NAME="description" CONTENT="Example of Initial Frames Document">
< META NAME="keywords" CONTENT="HTML, frames, example, document">
< /HEAD>
< FRAMESET ROWS="55%,25%,20%">
< /FRAMESET>
< NOFRAMES>
< BODY>
You're browser is not reading this FRAMESET!
< /BODY>
< /NOFRAMES>
< /HTML>Right about now, you may be thinking, "HOLY COW! We're jumping into this with both feet!". Actually, if you don't know HTML, you will get lost. I suggest going to the HTML Tutorial. For those who understand the HTML portions of the above, I'll break this down for you. First, I will point out that the FRAMESET is neither in the HEAD nor the BODY. It does NEED to be AFTER the HEAD and BEFORE the BODY! The FRAMESET, as many HTML tags do, end with /FRAMESET. Once inside the frameset tag you will need to divide the browser into the rows (FRAMESET ROWS) or columns (FRAMESET COLS) you want. In the example, I used rows, which are horizontal divisions. The sizes are defined from top to bottom, or in the case of columns, left to right. The top most frame will take up 55% of the browser in my example. The next will take up 25% and the bottom most frame will take up only 20%. After their sizes are defined in that initial line, you want the next lines to define each individual section of the frameset. The top 55% is named "Blue" using the NAME tag and the HTML child file that will load into it is named "Blue.html", the middle 25% is named "Red" and will hold the child file "Red.html", and the bottom 20% is named "Green" with a child file named "Green.html" loaded into it. I made the HTML documents that load into these frames REALLY simple: Here's "blue's" HTML:
The "Red" file and "Green" file will have their obvious changes. Point is, you can have ANY HTML that you may already have done up loaded into a frameset. There is nothing special about the files that are loaded into frames. So let's take a look at what my frameset looks like.
If I had chosen to make the frameset like this: ....
No comments:
Post a Comment