The three types of addressing
The three types of addressing are used in the following places:
  • In the HREF="sometypeofaddress" part of an A tag
  • In the SRC="sometypeofaddress" part of an IMG tag

All of these examples are given using the A tag, but the same logic and rules applies to the IMG tag.

The three types of addressing are:

  1. Absolute addressing:
    Specifies the entire address including protocol
  2. Relative Addressing:
    Specifies a path to a file relative to where the page that is being viewed has been published.
  3. Root addressing:
    Specifies a path to the file starting at the root of the web server that page is published on

 

 

 

 

Absolute Addressing

Absolute addressing is an address that is completely spelled out with the protocol name, the server name, the directories leading to an html file on that server, and if necessary the file name** itself.

When to use Absolute Addressing:

  • Linking to something not on the same server as your web page
  • Telling a web server's form script what page to use after your form has been submitted
  • Linking to something that requires a different protocol, such as
    • an e-mail link(mailto:)
    • an ftp (ftp://) link
    • secure server link (https://)

 

An example of Absolute addressing used to link to another student's site:


Here is a link to the student found in wpd34 using absolute addressing:

<A HREF="http://www.meyerconsult.com/student/wpd34/">Student wpd34</A>


An example of Absolute addressing used to for an e-mail link:

If trying include an e-mail link E-mail You, you would need to use absolute addressing It would look like this:

<A HREF="yourname@yourisp.com">E-mail me</A>