Hyperlinks are a method of getting from one web-page to another, whether its another page of your site or a completely new site. For this example I will setup a link to Google.com
this is my hyperlink
The web address will need to include the "http://" before the websites name otherwise the link will not work. The easiest way to get this right is to copy and paste it from the address bar of Firefox (or similar browser).
To get the link to open in a new window do the following:
this is my hyperlink that opens in a new window
Relative linking is used for linking to other pages in your site only. It links to a page in relation to the page the link is on. the path will begin with a . to tell the computer to leave this file, then a . for every folder up it has to go. Then a / and each folder that has to be gone into, and then a / and the file name. For example to link to my homepage that is in the same folder as this page I would put "./index.html" after the href= to link to it. In this example I will open it in a new window:
my homepage
Have fun linking.
This website was created by Michael Strutt
|