Professional Documents
Culture Documents
a. HTML 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
Allows user to view more than 1 web page in the same browser at the same time.
b. HTML Frames
The <frame> tag defines one particular window (frame) within a <frameset>.
Each <frame> in a <frameset> can have different attributes, such as border, scrolling,
the ability to resize, etc.
HTML FRAMES
25
c. Creating Frame
The tag defines the general layout of the web page that uses frames and how many
columns or rows will be in the frame.
The syntax:
<HTML>
<head>
</head>
<frameset rows="20 %,*">
<frame src="header.htm" name=title>
<frameset cols="30 %,*">
<frame src="menu.htm" name=menu>
<frame src="content.htm" name=content>
</frameset>
</HTML>
* symbol allocates the remaining space to the second row and cols.
Src is the path address, file that wants to be display in the frame.
By default a scroll bar is displayed when the contents of the page not fit the frame.
HTML FRAMES
26
f. Link Targetting
To open the hyperlink document in the same frame, user has to set the frame
target.
The target is the frame name and must be set at the hyperlink tag.
f. Inline frame
Inline or floating frames are ones which appear on a page, much like an image or
a table would.
This allows you to open completely separate pages in the middle of the pages
The syntax:
<iframe src="order.html" width="80%" height="110"> </iframe>
HTML FRAMES
27