Relative URLs

To create a link which specifies a Relative URL, you only need to specify the path-name of the URL. Any portion of the URL that you leave out will be filled in automatically by the reader' browser.

For example, to create a link to the file abs-url.htmll which is located in the same directory as the document which contains the anchor tag can use a relative URL. For example:

A link to  <A HREF="abs-url.html">Absolute URL</A> is available.

Displays:

A link to Absolute URL is available.

When you select the link above the relative URL (abs-url.htmll will be expanded by your Web Browser to the absolute URL:

http://www.eelab.usyd.edu.au/abs-url.html

When you wish to specify an INDEX file in your URL, you don't need to include the document's name, as it will be assumed to be the INDEX file located in that directory. This is known as specifying only the Relative Path to the INDEX file, and is considered the best way to reference an INDEX file.

Tell me more about Relative Paths.


go_back.gif (279 bytes)[HTML]go_more.gif (275 bytes)go_down.gif (256 bytes)

Revised: Friday, 23 July 1999 by EIE WebMistress