|
<html>
<head>
<title>My Home Page</title>
</head>
<body>
<table width="760")
<tr valign="middle">
<td width="140" height="40">image/logo
</td>
<td width="620" height="40" align="center">This
is my new home page
</td>
</tr>
</table>
<table width="760")
<tr valign="top">
<td width="140" height="20">
<p>Home Page</p>
<p>Page 1</p>
<p>Page 2</p>
<p>Page 3</p>
</td>
<td width="620" height="20" align="left">
<p>This is the start of the main table of the web
page and you can add as much text as you feel is necessary
to promote your page.</p><br><br>
</td>
</tr>
</table>
</body>
</html>
We will now link the index.htm to the 3 new pages you have
saved. We will also link each of the new pages to the index.htm
(Home Page).
Here is a description of the markup tags you will use.
| <a> </a> |
Defines link when used in conjunction
with the href attribute. |
| href= |
Defines the destination of a link. This
can be an address of another page in your site or a
page on a remote site on the internet. |
Note the changes to the code.
<html>
<head>
<title>My Home Page</title>
</head>
<body>
<table width="760")
<tr valign="middle">
<td width="140" height="40">image/logo
<td>
<td width="620" height="40" align="center">This
is my new home page
</td>
</tr>
</table>
<table width="760")
<tr valign="top">
<td width="140" height="20">
<p>Home Page</p>
<p><a href="pages/page1.htm">Page
1</a></p>
<p><a href="pages/page2.htm">Page
2</a></p>
<p><a href="pages/page3.htm">Page
3</a></p>
<td>
<td width="620" height="20" align="left">
<p>This is the start of the main table of the web
page and you can add as much text as you feel is necessary
to promote your page.</p><br><br>
</td>
</tr>
</table>
</body>
</html>
Copy this code into an editor. Name the page index.htm
and save to the Folder:
C:\My Web1 If this folder contains a page called index.htm
you can overwrite the old page.
Previous Page
Go to Lesson 5
|