next up previous contents index
Next: Linking to Part of Up: Creating Hypertext Links Previous: Linking to Another File

Creating Relative Links

Relative path names are addresses of files relative to your current location. They are useful for creating links within a directory and its subdirectories. You could then easily move the entire chunk of information to another location without having to rename any links.

As a quick example, if you are working in the directory /dept/mydept/Magazine which has subdirectories june95 and may95, you could use relative paths to move between the two subdirectories. For example, if you are editing a file in the directory


   /dept/mydept/Magazine/june95/
and you want to refer to a file in the may95 subdirectory, you could create the following link:

   Please look at the <a href="../may95/file2.html">May</a> issue.
If you used the full path name, /dept/mydept/Magazine/... and then all this information was moved to the directory /dept/newdept/Magazine/, you would have to rename all the links.

To make a link to a page outside your own material, you should include the entire HTTP:// address in the link . For example:


   And <a href="http://www.rpi.edu">RPI</a> has a Student Union.

Please refer to page gif for more information on organizing your files and using relative links.



Send comments to consult@rpi.edu