Вы находитесь на странице: 1из 19

SRI KRISHNA ARTS AND

SCIENCE COLLEGE
DEPARTMENT OF BCA & M.Sc. SS

WEB DESIGNING

(15SSI33)
ATTENDANCE
SNAP TALK
UNIT II
Topic to be discussed

FRAMES
INTRODUCTION
 The HTML tags that divide a browser screen
into two or more HTML recognizable unique
regions is the <frameset>…</frameset>
tags. Each unique region is called a frame.
 Each frame can be loaded with a different
document and hence, allow multiple HTML
documents to be seen concurrently
THE <FRAMESET> TAG
 The splitting of browser screen into frames is
accomplished with the <frameset> and
</frameset> tags embedded into the HTML
document.
 This tag require one of the following two
attributes depending on whether the screen
has to be divided into rows or columns:
Rows This attribute is used to divided the screen into multiple
row. It can be set equal to a list of values. Depending on
the required size of each row. The values can be:
• A number of pixels.
• Expressed as a percentage of the screen resolution.
• The symbol * which indicates the remaining space.

Cols This attribute is used to divide the screen into multiple


columns. It can be set equal to a list of values.
Depending on the required size of each column. The
values can be:
• A number of pixels.
• Expressed as a percentage of the screen resolution.
• The symbol * which indicates the remaining space.
The <frame> tag
 Once the browser screen is divided into rows, each unique
section defined can be loaded with different HTML
documents.
 This is achieved by using the <frame> tag, which takes in the
following attributes:
SRC=“url” Indicates the URL of the document to be loaded into the
frame.
MarginHeight=“n” Specifies the amount of white space to be left at the top
and bottom of frame.
MarginWidth=“n” Specifies the amount of white space to be left along the
sides of the frame.
Name=“name” Gives an unique name to the frame.
Noresize Disables the frames resizing capacity.
Scrolling Controls the appearance of horizontal and vertical
scrolbars in a frame.
Targeting named frames
 Whenever a hyperlink, which loads a document in
a frame is created, the file referenced in the
hyperlink will be opened and will replace the
current document that is in the frame.
 In a situation where the new document needs to
be opened in a different frame while keeping the
document from which the new document was
navigated open in a different frame, a simple
HTML coding technique must be used.
 Since the hyperlink must open an HTML file
in another frame, the frame in which the
HTML file is to be opened needs to be
named. This is done by using the Name
attribute of the <frame>…</frame> tags.
 The Name takes one parameter, which is its
frame name.
 The hyperlink tag will have to be supplied with the
following information:
 The filename.html file that has to be opened
 The name of the frame where the filename.html file has to be
opened.
The attribute via which the frame name is specified is the Target
attribute, which is a part of the <a>…</a> tag. This
information is given as:
Target=“frame_name>”
The attribute via wh9ich the HTML filename is specified is the
Href attribute which is a part of the <a>…</a> tag. The
information is given as:
<a href =“index.html” Target =“Main”> Visit us</a>
KEYWORDS
 Frames
 Frameset
 Targeting Frames
Points to Ponder
 The HTML tags that divide a browser screen
into two or more HTML recognizable unique
regions is the <frameset>…</frameset>
tags. Each unique region is called a frame.
Q&A
 Each frame can be loaded with a different
document and hence, allow _____________
to be seen concurrently.
 A. Single HTML documents
 B. Multiple HTML documents

 Ans: B. Multiple HTML documents


Q&A
 The splitting of browser screen into frames is
accomplished with the _______ tags
embedded into the HTML document.

 Ans: <frameset> and </frameset>


Q&A
 The Name takes one parameter, which is its
________.

 Ans: frame name.


Q&A
 The attribute via which the frame name is
specified is the __________.

 Ans: Target attribute


NEXT SESSION

UNIT III