![]() |
HTML GUIDE
PAGE 5 |
Tags covered on this page
<A HREF>
|
LINKING TO OTHER PAGES
OK. So you've got a list of tags, you've got a file full of HTML, you've even posted it on the 'net - but you still do not have a proper web-site...
So far you only have pages, now you need to link these pages together and build your site.
That is, you need to let visitors to your site do some surfing around the various pages you've created - and to do that you need the Anchor tag.
The anchor tag is yet another container. Any text within the tags : <A HREF="...">
and </A>
is shown as the link (denoted by a change of colour) on the browser.
Once the user clicks on this link they will surf out to the page specified in the HREF="..."
section of the tag.
Files are specified by the HREF
in two ways : either by just their file name or their full URL.
You will need to use the latter, more lengthy, case
whenever you link to other servers (ie other sites).
To do this, I tend to copy the URL shown on the browser straight into my text file. This ensures no typing errors which should produce a fully working link. If you miss-type the URL, the browser will not be able to find the page you are linking to and will report an error message back to the user.
Check your links to other sites regularly - visitors to your site will not be pleased if they have to wait for a long time to find that the site you've linked to no longer exists.
If you are linking to other pages on your own server (ie within your own web-site), you can use the briefer method of just using the file name. The browser will then automatically
add on the  http://www.
etc   part of the URL.
To link to other sites you must specify the full URL in the anchor
e.g.
To link to this page from one of the pages in your site, you need the tags :
<A HREF="http://www.oocities.org/Heartland/Plains/5287/htmlguidep5.html"> link text </A>
|
Whereas, to link to other pages in your own site, you need only specify the file name
e.g.
To link to a page stored in the file aboutme.html
from, say, your home-page, you only need type :
<A HREF="aboutme.html"> link text </A>
and
When I want to link to this page from any other page in my site, I only have to enter :
<A HREF="htmlguidep5.html"> link text </A>
If this guide was called "The Essential Guide to HTML" it would stop here.
What has gone before is enough to create an informative web-site in which you can express your own views and opinions. What follows serves only as a guide on how to jazz up a dull web site and make it more appealing to surfers who arrive.
Before moving on to the last three pages in this guide, I suggest you take time out to first create a few pages of your own on the 'net.
Get a feel of the HTML language and some general experience of programming in it - you'll soon see how easy it is and how addicted you've become.
![]() ![]() ![]() ![]() |
|