Hyperlinks


There are two kinds of hyperlink, relative reference and global references.

Global Refence

The link below is an example of a global reference.
This link has the full website address in it (URL).
HTML CodeResult on web page
<a href="http://www.hindleyhs.wigan.sch.uk">Hindley High School website</a> Hindley High School website

Global References should only be used when you need to go to a webpage that is outside your own website.

Reltive Refence


The link below is an example of a local or relative reference. It only works when the web pages are in the same folder.
HTML CodeResult on web page
<a href="./index.html">home page</a> home page

The advantage of a relative reference is that you can move the whole website from one domain address or server to another and it will still work.