Web Design and Development
Introduction
Internet and WWW
Defining a Web site
Good and bad Web Design Features
Elements of a Web page
HTML Introduction
Initial tags
Character Formatting Tags
Paragraph Formatting tags
List Tags
Anchor Tag
Images
Tables
Frames
Forms
Other Elements

HTML Frames

A frame is a region in a browser window that can display an HTML document independent of what's being displayed in the rest of the browser window.

A frameset is an HTML file that defines the layout and properties of a set of frames, including the number of frames, the size and placement of the frames, and the URL of the page that initially appears in each frame.

A frameset is also the name of HTML document where frames are being set-up.

It was in introduced in August of 1995.

Reasons for Using Frames

a. To view multiple ".html" documents in one browser window at a time.
b. To keep navigation controls and banners static in one frame while allowing the contents of another frame to change.
c. To display scrollbars if the content is too large to fit in a window for the visitors to scroll the frames independently.

Disadvantages

a. The frameset cannot be printed.
b. Older browsers don't support frames.
c. Precise graphical alignment of elements in different frames can be difficult.
d. Testing the navigation can be time-consuming.
e. The URLs of the individual framed pages don't appear in browsers, so it can be difficult for a visitor to bookmark a specific page

Typical Rendering:

<html>
<head>
</head>
<frameset cols="25%,*">
<frame src="header.html">
<frame src="navigation.html">
</frameset>
</html>

<frameset></frameset>...

- It is the tag that defines the characteristics of the frames page. Individual frames are defined inside it.


Attributes Specification:

Attribute
Value
Description
rows [px],*,% defines the width of each frame will have/
sets the horizontal division of the web page
cols [px],*,% defines the each of each frame will have
sets the vertical division of the web page
frameborder "yes"/"no" sets on or off the frame border (visibility)
border [px] sets the border width
bordercolor "color" sets the color of the border of frames
framespacing [px] sets the distance between frames / modifies the border width

<frame>
- It is the tag that defines the property of indicidual frames in a frameset.

Attributes Specification

Attribute
Value
Description
src "URL" set the location of the web page to load into the frame.
name "text" sets the name of each frame / very useful for frame navigation
scrolling "yes"/ "no" sets on or off the scroll bar (visibility)
border [px] sets the border width
bordercolor "color" sets the color of the border of frames
noresize   sets the dimension of frames unchangeable


<noframe><noframe>

- it is the container tag used to add the <body> tag inside a frameset document.

 

Hosted by www.Geocities.ws

1