FRAMES - Lesson 1

We are going to create a screen layout of the format:

left-frame right-frame

NOTE to produce this form of screen display we require the creation of 3 web pages.

First we create a 'master frame' that sets up the layout of the whole screen.

NOTE the BODY tag is not used when dealing with frames. The section between the horizontal lines is the code required to produce the screen layout.

THIS CODE WILL, ON IT'S OWN, PRODUCE A RATHER ODD DISPLAY.



<HTML>

<HEAD> <TITLE>FRAMES lessons</TITLE> </HEAD>

<FRAMESET FRAMEBORDER=1 COLS="17%,83%">

<FRAME SRC="left-frame.html"> <FRAME SRC="right-frame.html">

</FRAMESET>

</HTML>


Cut & paste the code in NOTEPAD, saving as main-frame.html

<FRAMESET> is used instead of the <BODY> tag and needs to be closed with the </FRAMESET> tag.

the FRAMEBORDER bit puts the vertical line bewteen the 2 frames, and
the COLS=17%,83% bit simply tells the browser how much of the screen to dedicate to each frame

next lesson

Hosted by www.Geocities.ws

1