Webmaster

HTML : Frames
Contents ]
Jérôme Versavel

The <FRAME> Tag

As we just saw, the <FRAMESET> tag's role is to provide space for frames in the windows. So how do we define the pages that must appear in them?

Let's use the same example:

<FRAMESET COLS="20%,80%">
<FRAME NAME="left" SRC="menu.html">
<FRAME NAME="right" SRC="home.html">
</FRAMESET>

The two <FRAME> tags designate the HTML files the browser must display in our two vertical frames. This tag is used with two essential attributes:

  • SRC, which specifies the HTML resource to be displayed in the frame.

  • NAME, which gives a name to the current frame. This name can be and frequently is used as a target for subsequent links.

How many frames? The number of <FRAME> tags is not subject to limitation but it is common practice not to exceed three frames.



  1   2   3   4   5   6   7