With frames, you can display more than one Web
page in the same browser window.
Frames
Each HTML
document is called a frame, and each frame is independent of the other.
The disadvantages of using frames are:
- The web developer must keep track of more HTML documents
- It is difficult to print the entire page
The
Frameset Tag
- The <frameset> tag defines how to divide the window into frames
- Each frameset defines a set of rows or columns
- The values of the rows/columns indicate the amount of screen area
each row/column will occupy
The Frame Tag
- The <frame> tag defines what HTML document to put into each
frame
Tag
Description
Tags |
Description |
<frameset> |
Defines Set of Frames |
<frame> |
Defines a sub window (a frame) |
<noframes> |
Defines a noframe section for Browers that do not
Handle Frames |
<iframe> |
Defines an Inline sub window (frame) |
Frame Tag Example
Vertical frameset
It explains how to make a vertical frameset with three different documents.
Horizontal frameset
It explains how to make a horizontal frameset with three different
documents.
How to use the <noframes> tag
It explains how to use the <noframes> tag.
Mixed frameset
This example demonstrates how to make a frameset with three documents,
and how to mix them in rows and columns.
Frameset with noresize="true"
This example demonstrates the noresize attribute. The frames are not
resizable. Move the mouse over the borders between the frames and notice
that you can not move the borders.
Navigation frame
This example demonstrates how to make a navigation frame. The navigation
frame contains a list of links with the second frame as the target.The
second frame will show the linked document.
Inline frame
This example demonstrates how to create an inline frame (a frame inside
an HTML page).
Jump to a specified section within a frame
This example demonstrates two frames. One of the frames has a source
to a specified section in a file.
Jump to a specified section with frame navigation
|