HTML Frames

Framesets in HTML 


HTML frames are used to divide the browser window into multiple sections (rows/columns). Each section can contain separate html document. The collection of frames in browser window is knows as frameset. Frames are not supported in HTML5.

HTML frames are defined by following tags:

 <frameset> tag is used to divide the window. It specifies how many columns or rows will be in the frameset and how much space will occupy by each of them. <frame> tag is used to specify which HTML document will open into the frame.

Example1 (Dividing the browser window into three columns):

<html>
<head>
 <title> HTML Frames </title>
</head>
<frameset cols="33%,33%,33%">
<frame src="file1.html">
<frame src="file2.html">
<frame src=" file3.html">
</frameset>
</html>

Example2 (Dividing the browser window into two rows):

<html>
<head>
 <title> HTML Frames </title>
</head>
<frameset rows="60%,*">
<frame src="computer.html">
<frame src="demo.html">
</frameset>
</html>

 



Example Programs



Program [1]

Create a webpage, divide the webpage into six frames. In one frame create five links that will display different HTML forms in the remaining five frames respectively.


View Solution

Program [2]

Create a page with two frames using HTML:

a) The left frame of page contains the list of names and images of the Indian national leaders.

b) On the left frame when u click on the image, the details will be shown on the right fame


View Solution

CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Website development Company in Allahabad Sarkari Exam Quiz