Creating a Website Using Frames
HTML Code for the Index Page Created Using WordPad or NotePad
Be sure to save as index.html
-
<html>
-
<head>
-
<title>Palm Harbor Tigers</title>
-
<!Create two columnwise frames>
-
<frameset cols="140,*">
-
<!Define left frame>
-
<frame name="toc"
-
src="toc.htm"
-
marginwidth=5
-
marginheight=5
-
scrolling="yes">
-
-
<!Define right frame>
-
<frame name="main"
-
src="main.htm"
-
marginwidth=10
-
marginheight=10
-
scrolling="yes">
-
</frameset>
-
</head>
-
<body>
-
-
</body>
-
</html>
The Table of Contents Page
Save As toc.htm
-
<html>
-
<head>
-
<title>Tigers</title>
-
<base target="main">
-
</head>
-
<body>
-
<br><b><font size=-1>Contents</font></b>
-
<li>
-
<font size=-1><a href="main.htm">Home</a></font></li>
-
<li>
-
<font size=-1><a href="about.htm">Our League</a></font></li>
-
<li>
-
<font size=-1><a href="players.htm">Players</a></font></li>
-
<li>
-
<font size=-1><a href="schedule.htm">Schedule</a></font></li>
-
<li>
-
<font size=-1><a href="links.htm">Links</a></font></li>
-
</body>
-
</html>
The Main Page – The First Page Appearing in the Right Frame
Save As main.htm
-
<html>
-
<head>
-
<title>Palm Harbor Tigers Little League Team</title>
-
</head>
-
<body>
-
<h1>
-
Meet the Tigers</h1>
-
General information about the Palm Harbor Tigers. Includes e-mail address
of coach.
-
</body>
-
</html>
All the Other Pages in the Framed Website
Save each with a different name not using main, toc, or index. Following
example saved as about.htm but could be any name.
-
<html>
-
<head>
-
<title>Tigers' League</title>
-
</head>
-
<body>
-
<h1>
-
About our League</h1>
-
Information about the Little League in Florida
-
</body>
-
</html>