Loading....
Coupon Accepted Successfully!

 

Frames

With frames, you can display more than one HTML document in the same browser window. Each HTML document is called a frame, and each frame is independent of the others.

 

The disadvantages of using frames are:

* The web developer must keep track of more HTML documents

* It is difficult to print the entire page


The Frameset Tag

* The <frameset> tag defines how to divide the window into frames

* Each frameset defines a set of rows or columns

* The values of the rows/columns indicate the amount of screen area each row/column will occupy

 

Vertical frameset

(This example demonstrates how to make a vertical frameset with three different documents.)

<html>
<frameset cols="25%,50%,25%">
<frame src="frame_a.htm">
<frame src="frame_b.htm">
<frame src="frame_c.htm">
</frameset>
</html>

Horizontal frameset

(This example demonstrates how to make a horizontal frameset with three different documents.)

<html>
<frameset rows="25%,50%,25%">
<frame src="frame_a.htm">
<frame src="frame_b.htm">
<frame src="frame_c.htm">
</frameset>
</html>





Test Your Skills Now!
Take a Quiz now
Reviewer Name