0% found this document useful (0 votes)
72 views13 pages

HTML Frames: Computer Iv - Fourth Quarter

HTML frames allow displaying multiple HTML documents in the same browser window. A frameset divides the browser window into sections called frames, with each frame displaying a separate HTML document. The frameset element defines the number of rows or columns, and the percentage or pixel size for each. The frame element defines each individual frame within the frameset and links to an HTML document. Examples show how to create vertical and horizontal framesets. Advantages of frames include simple organization and navigation across pages without reloading, while disadvantages include increased complexity and difficulty printing entire pages.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views13 pages

HTML Frames: Computer Iv - Fourth Quarter

HTML frames allow displaying multiple HTML documents in the same browser window. A frameset divides the browser window into sections called frames, with each frame displaying a separate HTML document. The frameset element defines the number of rows or columns, and the percentage or pixel size for each. The frame element defines each individual frame within the frameset and links to an HTML document. Examples show how to create vertical and horizontal framesets. Advantages of frames include simple organization and navigation across pages without reloading, while disadvantages include increased complexity and difficulty printing entire pages.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

HTML FRAMES

COMPUTER IV – FOURTH QUARTER


HTML Frames
With frames, you can display more than
one HTML document in the same browser
window.
Each HTML document is called a
frame, and each frame is independent of
the others.
The HTML frameset Element
• The frameset element holds one or more
frame elements. Each frame element can
hold a separate document.

• The frameset element states HOW MANY


columns or rows there will be in the
frameset, and HOW MUCH
percentage/pixels of space will occupy
each of them.
The HTML frame Element
•The <frame> tag defines one particular
window (frame) within a frameset.
Example:

<frameset cols="25%,75%">
   <frame src="frame_a.htm" />
   <frame src="frame_b.htm" />
</frameset>
VERTICAL FRAMESET

<frameset cols="25%,75%">

   <frame src="frame_a.html" />

   <frame src="frame_b.html" />

</frameset> show output


HORIZONTAL FRAMESET

<frameset rows=“300,700">

   <frame src="frame_a.html" />

   <frame src="frame_b.html" />

</frameset> show output


Take note:
The html documents (including the web
page objects) should be stored in one
folder. (offline documents)
Online links needs internet connection.
HTML Frame Tags

Tag Description
<frameset> Defines a set of frames
<frame /> Defines a sub window (a
frame)
Exercise 4-3
Create a nested frameset that shows a
combination of columns and rows.
Save it inside the your respective
folders.

show output
Source code:
<html> - 1 pt.
<frameset cols="30%,70%"> -3 pts.
<frame src="index.html" /> - 2 pts.
<frame src = “frames3.html" />
</frameset>
</html>
Advantages of Frames
The design of the webpage/website is
simple but organized
Easy navigation
Lets the user have multiple pages in the
same browser
Frames can be used to reduce server load,
as there is no need to reload all the pages
when ever a new page is visited.
Disadvantages of Frames
The web developer must keep track of
more HTML documents
It is difficult to print the entire page
Assignment:
Practice creating navigation frames.

You might also like