07/01/2020

Frame tag in HTML and Frameset tag in HTML :Studywow

Studywow: Topics= 1. Frame tag in HTML, 2. Frameset tag in HTML.
Read more topics of Java to (click here).


Q1. Define the frame tag ?

Ans. Frame Tag: An HTML frames allow, multiple html documents to be displayed inside of one browser window at a time. A collection of frames in the browser window is known as frameset.
Syntax : <frame> ................. </frame>

Q2. Explain the frameset tag ?

Or What is a <FRAMESET> tag? Differentiate between frame and frameset tag ?

Ans. <FRAMESET> Tag: This element holds one or more frame elements. It also specifies how many columns or rows there will be in the frameset and how much space will each of them occupy. The frameset tag defines a group of frames.

The difference between frame and frameset is that frames are used to divide your browser window into multiple sections and frameset is a collection of frames in the browser window.
Syntax: <frameset>... </frameset>

Attributes of Frameset Attribute

1. cols = It specifies how many columns are contained in the frameset and the size of each column.
You can specify the width of each column in one of four ways:
• Absolute values in pixels.
• A percentage of the browser window.
• Using a wildcard symbol.
• As relative widths of the browser window.

2. rows = This attribute works just like the cols attributes and takes the same values, but it is used to specify the rows in the frameset.

3. border = The attribute specifies the width of the border of each frame in pixels. A value of zero means no border.

4. frameborder = This attribute specifies whether a three-dimensional border, border should be displayed between frames. This attribute takes value either 1 (yes) or 0 (no).

5. framespacing = This attribute specifies the amount of space between frames in a frameset. This can take any integer value.

For example:

<html>
<head>
<title>Frames Page</title>
</head>
<frameset rows="120,*">
<frame name="top" src="frames_top.html">
<frameset cols="25%, 50%, 25%">
<frame name="left" src="frames_left.html">
<frame name = "Center" src ="/html/main frame.html">
<frame name="right" src="frames_right.html">
</frameset>
</frameset>
</html>

Output:





[ Topics= Frame tag in HTML, Frameset tag in HTML ]
[ Topic= Frame tag in HTML, Frameset tag in HTML ]
End.


Join us on Facebook and Twitter  to get the latest study material. You can also ask us any questions.
Facebook = @ studywow
(click on it or search "studywow" on facebook)
Twitter = @ studywow
(click on it or search "studywow" on Twitter)
Email= studywow.com@gmail.com
Send us your query anytime!


External Website links:

1. Frame tag in HTML (click here).
2. Frameset tag in HTML (click here).
[ Topic= Frame tag in HTML, Frameset tag in HTML ]