My Homework Pages-Shari Tripp


View the source code for this example to see the link structure.

If the file is in the same directory that index.html is in, your link should look like this:


My Contact Info

If the file is in a directory UNDERNEATH the directory that your index.html file is in (for example, if your index.html file is in your student folder and your lab is in a folder called "labs" that you created underneath the student folder, your link should look like this:


Lab 1

If you are linking to a file in the directory ABOVE the directory that your file is in (for example, if you were inserting a link back to your index page into lab1.html and lab1.html was stored in a "labs" directory, your link should look like this:


Home Page

If you are linking to a file in another directory--for example, if you have a graphic in a folder called "graphic", and you are linking to it out of your lab1.html file that is stored in a folder called "labs", your link would look like this:


This is a picture

In other words, the two dots tell the server to move up a directory, and then go to the folder in that directory.

If you are linking to a file in the same directory, your link would look like this:

Home Page