You can link to documents in other directories by specifying the relative path from the current document to the liked document. For example, a link to a file Col.gif in the images subdirectory, the link would be as follows:

<A HREF="images/Col.gif">CLICK HERE</A>

This link is a relative link that display a graphic GIF file when clicked. They are called Relative because you are specifying the path to the linked file relative to the location of the current file. You can also use the absolute pathnames (the complete URL) of the file, in this case it would be:

<A HREF="HTTP://www.vcn.bc.ca/carnegie/images/Col.gif">CLICK HERE</A>

Relative links are more efficient in accessing a server, they also have the advantage of making documents more portable, for instance, you can create several web pages in a single folder on your local computer, using relative links to hyperlink one page to another, and then upload the entire folder of web pages to your web server.

© Copyright 2001 Carnegie Webhead's

Hosted by www.Geocities.ws

1