FRAME
Html provides a facility to
divide a web page into several blocks is known as frames. Each frame may
display a separate web page and html document window in a one browser. All browsers do not support the frames. The
general use of frame is to have the menu in one frame and other frame contain
the data. When user click on menu frame and data is displayed in corresponding
frame.
Frame is started by using tags
<frameset> and ends with </frameset>.
Frame layout
Frameset tag requires two attributes in which the
screen is divided into rows and columns.
Row-this attributes is used to divide page into
multiple column or horizontally. Value of row is indicating the height of
frame. For example-
Rows=”20%,”
Rows=”30%, 40%, 30%”
Column- this attributes is used to divide page into
multiple column or horizontally. Value of row is indicating the height of
frame. For example-
Cols=”20%,”
Cols=”25%, 25%, 50%”
Frame element
Attributes of the frame are as follow:
Tag name
|
Description
|
Name
|
It gives the unique name of the
frame
|
Src
|
It specifies the url of the
document to be loaded
|
Noresize
|
It disable the frame resizing
property
|
Marginwidth
|
It specifies the amount of
margin left along left or right side of the frame
|
Marginheight
|
It specifies the amount of
margin left along top or bottom of the frame
|
Scrolling
|
Control the display of
horizontal and vertical scroll bar in frame
|
-
Yes
|
Scrollbar is added always
|
-
No
|
No scrollbar is provided
|
-
Auto
|
Scrollbar will be added when it
is required
|
Frameboarder
|
It indicate the boarder
information about the frame
|
-
1
|
A boarder will be drawn
|
-
0
|
No boarder
|
Specifying target in frame
The target attribute is used to create links such
as <a>,<link>,<area>,<form>,etc. the value of these attribute
refers to the frame where document is to be loaded.
For example:-
<html>
<head>
<title> target </title>
</head>
<body>
</body>
</html>
Comments