Webpage to Demonstrate the Frames

<html>
<head>
<title> Frame </title>
</head>
<frameset cols="25%,75%">
<frame src="http://www.mashable.com">
<frame src="http://www.ahmetcenet.com">
</frameset>
</html>

HTML

The HTML Frame Element


  • The <frame> tag  defines one particular window (frame) within a frameset.
  • In the example below we have a frameset with 2 columns. The first column in set at 25% of the width of the browser window. The second column in set at 75% of the width of the browser window.
  • The document "frame_a.html" is put into the first column and the document "frame_b.html" is put into the second column.

Example :
<frameset cols="25%,75%">
<frame src="frame_a.html"/>
<frame src="frame_b.html"/>
</frameset>


The HTML Frameset Element

The frameset element holds one or more frame elements. Each frame element can hold a separate document.
The frameset element states HOW MANY columns or rows will be there in the frameset and HOW MUCH percentage/pixels of space will occupy each of them.

HTML Frames


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


The disadvantage of using frames are :

  • Frames are not expected to be supported in future versions of HTML.
  • Frames are difficult to use(printing the entire page is difficult).
  • The webpage developer must keep track of more HTML documents.