Inserting Frames
Inserting Frames
What is Frame?
A frame is a basic shape or structure, especially one that outlines or surrounds a
door or window. When frame is a noun, it is usually some kind of enclosure or outline that
is also a physical support — like the frame around a window, a bed frame, or a
picture frame.
Simple
OUTPUT:
This is the output of the given codes above. It has 3 columns because as you can see there are
three frame tag in the program. The content of each frame is different from each other because in the
codes above it was declared that the file that will be displayed in frame number 1 is the file with a
filename “frens.html”. The second frame contains the file “script.html” and the third frames contains
the file “family.html”.
The size of each frame is also different from one another because it was declared in the tag
“frameset cols” that the first frame will be occupying the25% of the screen, the middle frame will be
50% of the screen and the last frame will be 25% to make it 100%.
How to make a frameset with three documents, and how to mix them in rows and columns?
<html>
<frameset ROWS="50%,50%">
<frame src="frens.html">
<FRAMESET COLS="25%, 75%">
<frame src="script.html">
<frame src="family.html">
</frameset>
</html>
OUPUT:
This is the output of the code given
above. There are two rows
(Horizontal) which was equally
Hello! divided because the declared size is
50% each. The first row contains the
file “frens.html” which contains the
word “Hello!”. The second row was
divided into two columns as you can
see in the tag “framest Cols”. The 2
column frame was divided into 2 a
25% frame and the 75% frame. They
have different content because its
frame was given files to display as
declared in the codes.