0% found this document useful (0 votes)
5 views

HTML

The document discusses HTML frames and how to use them to present content in multiple views within a web page. Frames allow dividing the browser window into independent sections. Frames can be used to keep certain elements like banners or navigation menus visible while other content scrolls. Links and navigation between frames is defined using frame names and the target attribute. Removing borders makes the divisions between frames invisible. Examples are given showing how to structure pages using rows and columns of frames.

Uploaded by

Muhd Firdaus
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

HTML

The document discusses HTML frames and how to use them to present content in multiple views within a web page. Frames allow dividing the browser window into independent sections. Frames can be used to keep certain elements like banners or navigation menus visible while other content scrolls. Links and navigation between frames is defined using frame names and the target attribute. Removing borders makes the divisions between frames invisible. Examples are given showing how to structure pages using rows and columns of frames.

Uploaded by

Muhd Firdaus
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

1

PART 4

DEVELOPING WEB PAGE


FROM HTML TO WEB PAGE
2

LESSON PLAN

Frames

Insert Frames
Frame

HTML frames allow authors to present document in


multiple views, which may be independent windows or
sub windows.

Multiple views offers designers a way to keep certain


information visible, while other views are scrolled or
replaced.

For example, within the same window, one frame


might display a static banner, a second a navigation
menu, and a third the main document that can be
scroled through or replaced by navigating in the
second frame
All about frames

Frame Names

- to make the linked page go into a frame other than


the one which contains the link, you need to name
your frames like this:

<frame name=”a” src=”main.html”>


All about frames

Making the link

- to make the link, go to the page which contains the


link and in the anchor tags, add the target attribute
like this

<a href=”practicepage.html” target=”a”>your link</a>


All about frames

Breaking out of frames

- to break out of frames completely, put target=”_top”


in the anchor tags like this:

<a href=”index.html” target=”_top”>


All about frames

No borders

- to get rid of the borders just put the border attribute


in the frameset tags like this:

<frameset rows=”35%,65%” border=”0”>


Insert frame
1 2
title.html

side.html
main.html main.html

3
title.html
side.html

main.html
1 <html> 2 <html>
<head> <head>
<title>Frames</title> <title>Frames</title>
</head> </head>
<frameset rows=“25%,75%”> <frameset cols=“25%,75%”>
<frame src=“title.html”> <frame src=“title.html”>
<frame src=“main.html”> <frame src=“main.html”>
<frameset> <frameset>
</html> </html>

3 <html>
<head>
<title>Frames</title>
</head>
<frameset rows=“25%,75%”>
<frame src=“title.html”>
<frameset cols=“25%,75%”>
<frame src=“sidebar.html”>
<frame src=“main.html”>
<frameset>
</html>
1 2

3
11

THANK YOU
PRACTICE…PRACTICE..PRACTICE..
I KNOW YOU CAN DO IT

You might also like