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>

 

Qus. 1 : Which is true about <iframe> tag?

  1. Its inline frame
  2. Embed another document within a current HTML document
  3. None
  4. Both (A) and (B) are true
Qus. 2 : Which of the following is not a type of Screen frames in HTML ?

  1. iframe
  2. uframe
  3. no frame
  4. frameset

Programs

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