An Hypertext Markup Language (HTML) file can reference other files, primarily in IMG and A tags.
Such references are done using Uniform Resource Locators (URLs), and
can be either absolute or relative, based on whether
a complete or partial address is used.
Absolute.
Absolute URLs use a complete address.
Examples include:
Relative.
Relative URLs omit the protocol, server, and perhaps some directory information.
The browser uses the information from
the current document to fill in the missing information.
Within a document from http://www-personal.ksu.edu/~neil/, the previous examples could be written as:
Relative URLs are generally preferred because they allow a document to be moved
to a different server or directory and work unchanged.
K-State's recent move of personal pages to the
www-personal.ksu.edu
server will cause people to have to change any absolute links in their HTML files.
Absolute links could simply be updated to use the new server.
In other words, simply change
www.ksu.edu
in HTML files to
www-personal.ksu.edu.
However, using relative links is a better method.
Example Home Page with Absolute URLs
The following simple home page has two absolute URLs:
one in an IMG tag and one in an A tag.