Page 11 - WORLD WIDE WEB activity 2_Neat
P. 11
Different types of hyperlinks
Click to edit Master title style
Relative Links
A relative link points to a location that is relative to the current page. Having a link to “index.html” is a
relative link that points to the “index.html” page in the same directory as the current page. Links can also be
made to “../index.html” to go to “index.html” in the parent directory. You can also use links like
“../images/mypic.jpg” to find an image in the images directory inside the parent directory of the current page.
Site Root-Relative Links
A site root-relative link points to a location that is relative to the root directory of the site. They begin with a
slash “/”. Having a link to “/index.html” is a site root-relative link that points to the “index.html” page in the
root directory of the site. One common use of this is to have all images in an images directory and then to
link to images with links like “/images/mypic.jpg”.
Absolute Links
An absolute link is simply one that includes the entire path to the file like
“http://www.contoso.com/news/index.html”. These are generally used for links that need to point to a
different site than the one on which your page is located.
USES IMPORTANCE OF HYPERLINKS .
Hyperlinks are the objects in web pages, and in some word processors, that allow you to click on them in
order to have your computer automatically display and jump either to another place in the document, or to
another document altogether, or to a specific place in another document.