431542
431542
431542
INTRODUCTION
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.
Disadvantages of Frames
Menu.html Content.html
example
<html>
<frameset rows="20%,*">
<frame src="title.html">
<frameset cols="30%,*">
<frame src="menu.html">
<frame src="content.html">
</frameset>
</frameset>
</html>
Frame's name and target attributes
Test.html
<html>
<head>
<title>HTML Target Frames</title>
</head>
<frameset cols = "200, *">
<frame src = "/html/menu.html" name = "menu_page"
>
<frame src = "/html/main.html" name = "main_page" >
</frameset>
</html>
Menu.html
<html>
<body bgcolor = "#4a7d49">
<a href = “d:/table.html" target = "main_page">html tables</a>
<br >
<br >
<a href = “d:/link.html" target= "main_page">html links</a>
<br />
<br />
<a href = “d:/image.html" target = "main_page">html images</a>
</body>
</html>
Main.html
<html>
<body bgcolor = "#b5dcb3">
<h3>This is main page and content from any link will
be displayed here.</h3>
<p>So now click any link and see the result.</p>
</body>
</html>