Frames

Simply put, frames are combining 2 html pages in one. This page uses frames. Although one would think the language for frames is compicated, it really is easy.

Here is the source code. All notes are inside normal html comment tags like this.

<!-- Comments here -->


HTML Source Code

<HTML>

<HEAD>

<TITLE>your title here</TITLE></HEAD>

<!-- As always, put the basic starting tags. Howerer, a body tag is not neccesary. -->

<FRAMESET COLS="x%,y%" BORDER="0" MARGINWIDTH="5" MARGINHEIGHT="5">

<!-- Frameset cols says the color. X%, y% is how big each column is. X% is the first frame (top or left) and y% is the second frame. Border is how much of a border around the page. Right now there is no border. Marginwidth and Marginheight is how much space should be between the 2 frames. Border, marginwidth, and marginheight are optional attribultes. If you do <FRAMESET ROWS="146,18">, then you get 2 rows. -->

<FRAME BORDER=0 SRC="links1.htm" NAME="Links" MARGINWIDTH="0" MARGINHEIGHT="0" NORESIZE>

<FRAME BORDER=0 SRC="index1.htm" NAME="Main">

<!-- Frame border=0 means that that individual frame has no border. SRC="links.htm" says what file to links to. Name="Links" basically is the title. Remember the title. It is very important for linking!!! Marginwidth and Marginheight are the same thing as before. The same thing goes for the second line. Marginwidth, border, and marginheight again are optional attributes. NORESIZE means that a viewer can't adjust how big each frame is.

Tip for using frames

Usually frames are used where 1 frame is a list of links and the other frame is the pages. To do this make the first frame be the links file. For more info see Linking -->

<NOFRAMES>

Your browser does not support frames. For more info, see "http://www.netscape.com"

</NOFRAMES>

<!-- The last 3 lines are for if the browser the viewer is using doesn't support frames. You can use any html and can even put an entire page if you want. Using this tag is optional but I highly recommend it. -->

</FRAMESET>

</HTML>

<!-- The last 2 lines told the computer the frames are finished and so is the html. -->


Home Next