Tutorial on HTML and web design, has help for Flash, DHTML, CGI, CSS, Java, also offers custom website design at cheap rates.
HTML Help Online  





AIM Help

Recommend this Site

 

Frames

Frames are a great way to organize your information and provide a navigation aid. Here is an example of a way people use frames.

N
a
v
i
g
a
t
i
o
n
Main Body
Advertising

A frame page actually consists of a html file with the frame code inside, that calls up other html files and displays them in one window. This way you have three different html files on the screen: navigation.html, ad.html and main.html. They are put into one file called index.html.
The following is the HTML code of the index.html file:
<html>
<head>
<title>Example</title>
</head>
<frameset rows="80%,20%">
<frameset cols="20%,80%">
<frame src="navigation.html" name="frame1">
<frame src="main.html" name="frame2">
</frameset>
<frame src="ad.html" name="frame3">
</frameset>
<body>
</body>
</html>

As you can see, the index.html calls up navigation.html, main.html and ad.html which are html files. The frameset rows defines the size of the rows and frameset cols defines the size of the columns. the frame src tells the name of the HTML file that will be loaded in the part.
If you want a link from navigation.html to open in main.html you would use the following tag:
<a href="link.html" target="frame2">Link</a> on the navigation page. You would use whatever you name the file up above in the code after the target=" ".


 



© 2004 htmlhelponline.com
Best Viewed with IE 1024 x 768   

Spider