Home | Previous | Next Introduction to the Web And HTML

Linking in HTML

Partial URLs

A partial URL may be coded within an anchor when referencing another file that comes from the same server. The partial URL will consist only of a file name with, optionally, subdirectories. For example:


The original file aboutme.html (called a "source document") contains a reference to the file my_dog.html (the "destination document) which lies in the same directory. The URL given in aboutme.html contains only the name of the file. When a browser sees this URL it knows to go to the same server and directory in which it found aboutme.html to also find my_dog.html.


Home | Previous | Next Introduction to the Web And HTML