The area within the browser that you are reading is called the "browser
window".
The browser window can be divided up into separate window panes, called "frames". A frame splits the window into two parts from top to bottom, or from left to right. If the two frames are one on top of the other, they are considered "rows". When the two frames are beside one another, they are considered "columns". Rows and columns do not have to be of equal size, and in fact, rarely are.
To create a page with frames, you must start an entirely new webpage. This page will have a head, but no BODY. This is because the BODY will be a product of the pages loaded inside the various frames.
The following code produces two columns:
The * in the code is a wildcard, assigning everything remaining to the second frame. The result would look something like this:
The following code produces two rows:
Again, the * in the code is a wildcard, assigning everything remaining to the second frame.
The result would look something like this:
You can even nest a frameset inside another frameset.
<FRAMESET ROWS="60,*">
<FRAME SRC="banner.htm">
<FRAMESET COLS="125,*>
<FRAME SRC="navbar.htm">
<FRAME SRC="intro.htm">
</FRAMESET>
</FRAMESET>
|
In the above source code, in place of the second bottom row (the lower frame), a new
frameset was created. In this new frameset, two columns are defined. The next two lines
set the URL for the contents of these two frames. The indentation was done with spaces,
and is used only to aid in editing the source code as the browser ignores spacing.
The result of the above sourcecode would look something like this: