Page 66 - Modular_V1.1_Flipbook
P. 66
FRAMES
HTML provides a feature to display more than one web pages on a single screen of the web
browser. These web pages are actually displayed using frames. Frames are the different
sections or parts of a web page. The <FRAMESET> tag of HTML allows you to divide a
browser window into many sections or parts. HTML also provides one more tag named
<FRAME> which allows you to display a web page in the frame. The <FRAME> tag is used
under the <FRAMESET> tag. The <FRAMESET> tag is a container tag and written in place of
the <BODY> tag. For example,
<FRAMESET COLS="30%, 70%">
<FRAME SRC="URL">
<FRAME SRC="URL">
</FRAMESET>
Where, URL is the address of a web page which you want to display in a frame. The <FRAMESET>
tag provides two attributes which are as follows:
ROWS: This attribute is used to divide the window into horizontal sections.
COLS: This attribute is used to divide the window into vertical sections.
The various attributes used with <FRAME> tag are:
FRAMEBORDER: This attribute is used to define whether a border is to be created around
the frame or not. The value taken by the attribute is 0 in case no border is to be shown and
1 in case a border is to be shown. For example,
<FRAME FRAMEBORDER="0">
NORESIZE: This attribute is used to restrict the user to resize the frame on the web page.
For example,
<FRAME NORESIZE>
SRC: This attribute is used to define the URL or path of the web page which is to be linked
to the frame. For example,
<FRAME SRC="frames.html">
Let us create a web page using the <FRAMESET> and <FRAME> tags.
<HTML>
<HEAD>
<TITLE> Frames </TITLE>
</HEAD>
<FRAMESET COLS="35%,65%">
<FRAME SRC="Home.html">
<FRAME SRC="Activities.html">
</FRAMESET>
</HTML>
64 Touchpad MODULAR (Version 1.1)-IX

