To use frames, you must create a document that uses the FRAMESET and FRAME elements to divide the browser's main window into rectangular areas (frames), like panes in a window. Then, for each frame, you specify an HTML document that contains the content to fill the frame.
For example, here's the code necessary to divide the main window into two equal frames, each one filled with different documents:
<HTML>
<HEAD>
<TITLE>2 Equal Frames</TITLE>
</HEAD>
<FRAMESET COLS="50%,*">
<FRAME SRC="document1.html">
<FRAME SRC="document2.html">
</FRAMESET>
</HTML>
As you can see, a frame document is very much like any normal HTML document, except the BODY container is replaced by a FRAMESET, which describes the frames that will make up the page.
You can divide the main window into columns, using the COLS attribute as in the example, as well as rows, using the ROWS attribute.
Furthermore, it's possible to divide individual frames into rows or columns, by nesting FRAMESET elements:
<FRAMESET ROWS="20%,*">
<FRAMESET COLS="25%,*">
<FRAME SRC="document1.html">
<FRAME SRC="document2.html">
</FRAMESET>
<FRAMESET COLS="50%,*">
<FRAME SRC="document3.html">
<FRAME SRC="document4.html">
</FRAMESET>
</FRAMESET>
Here's a quick explanation of the two tags used to create frames:
FRAMESET