Page 74 - TP_Prime_V2.2_Class8
P. 74
WAV, MP3 and Ogg are the file formats currently supported to embed audio.
MP4, WebM and Ogg are the file formats currently supported to embed video.
Frames
HTML provides a feature to display more than one web page on a single screen of the web
Prime (Ver. 2.2)-VIII sections or parts of a web page. The <IFRAME> tag in HTML allows you to embed another
browser. These web pages are actually displayed using frames. Frames are the different
HTML document within your current web page. The iframe in HTML stands for Inline
Frame. For example,
<IFRAME SRC="url" NAME="description">
Where, "url" is the address of a web page that you want to display in a frame. The <IFRAME>
tag provides the following attributes:
72 • SRC: It is used to specify the URL of the web page which you want to display in the
frame.
• HEIGHT: It is used to specify the height of the frame.
• WIDTH: It is used to specify the width of the frame.
• NAME: It is used to specify the name of the frame. This name can be used in the
TARGET attribute of the <A> tag.
Let us create a web page using the <IFRAME> tag.
<!DOCTYPE HTML>
<HTML>
<HEAD>
<TITLE> Frames </TITLE>
</HEAD>
<BODY>
<IFRAME SRC="Home.html" NAME="iframe1" WIDTH="30%" HEIGHT="550px"
STYLE="float:left;"></IFRAME>
<IFRAME SRC="Activities.html" NAME="iframe2" WIDTH="70%" HEIGHT="550px"
STYLE="position:absolute;"></IFRAME>
</BODY>
</HTML>
In the preceding code, we have divided the browser window into two columns.
In the left column, the Home page of the ABC Public School website will open.

