Date : Page No :
c. Aim:
Write a HTML program, to explain the working of
frames, such that page is to be divided into 3 parts on either
direction. (Note: first frame image, second frame paragraph,
third frame hyperlink. And also make sure of of using “no
frame” attribute such that frames to be fixed).
Description:
rows: Specifies the height of each row in the <frameset>
in percentage or pixels. In this case, it divides the frame into
30%, 40%, and 30% of the page height.
border: Defines the thickness of the borders between frames
in the <frameset>.
src: Specifies the source file (HTML document) to be
displayed in a <frame>.
name: Assigns a name to the frame, which can be used to
target this frame from other pages or links.
scrolling: Controls whether scrollbars appear in the
frame. Options are "yes," "no," or "auto."
Code:
<html>
<head>
<title>
frameset
</title>
</head>
Page No :
<frameset rows="30%, 40%,30% " border="2">
<h3>image frame</h3>
<frame src="imagef.html" name="frame1" scrolling="no" />
<h3>paragraph frame</h3>
<frame src="paraf.html" name="frame2" scrolling="auto" />
<h3>link frame</h3>
<frame src="linkf.html" name="frame3" scrolling="auto"/>
</frameset>
<noframes>
<body>
<p>
sorry! your browser does not support frames.
</p>
</body>
</noframes>
</html>
Output:
Page No :
By clicking the link