Frameset
Frameset
HTML frames are used to divide your browser window into multiple sections
where each section can load a separate HTML document. A collection of
frames in the browser window is known as a frameset. The window is divided
into frames in a similar way the tables are organized: into rows and
columns.The <frameset> tag defines a frameset.
The <frameset> element specifies HOW MANY columns or rows there will be
in the frameset, and HOW MUCH percentage/pixels of space will occupy each
of them.
<html>
<head>
<title>HTML Frames</title>
</head>
<noframes>
</noframes>
</frameset>
</html>
1
cols
Specifies how many columns are contained in the frameset and the size
of each column. You can specify the width of each column in one of the
four ways −
rows
This attribute works just like the cols attribute and takes the same
2 values, but it is used to specify the rows in the frameset. For example, to
create two horizontal frames, use rows = "10%, 90%". You can specify
the height of each row in the same way as explained above for columns.
border
3 This attribute specifies the width of the border of each frame in pixels.
For example, border = "5". A value of zero means no border.
frameborder
framespacing
src
1 This attribute is used to give the file name that should be loaded in the
frame. Its value can be any URL. For example, src =
"/html/top_frame.htm" will load an HTML file available in html directory.
name
frameborder
This attribute specifies whether or not the borders of that frame are
3 shown; it overrides the value given in the frameborder attribute on the
<frameset> tag if one is given, and this can take values either 1 (yes) or
0 (no).
noresize
By default, you can resize any frame by clicking and dragging on the
6
borders of a frame. The noresize attribute prevents a user from being
able to resize the frame. For example noresize = "noresize".
scrolling
<frameset rows="16%,84%">
<frameset cols="50%,50%">
<frame src="tl.html" name="tl">
<frame src="tr.html" name="tr">
</frameset>
<frame src="bottom.html" name="bottom">
</frameset>
<frameset rows="16%,84%">
<frame src="top.html" name="top">
<frameset cols="50%,50%">
<frame src="left.html" name="left">
<frame src="right.html" name="right">
</frameset>
</frameset>