Hyperlinks

A hyperlink is a variation of the anchor tag that allows you to jump to an anchor in the current HTML document, or another HTML document entirely anywhere on the Internet. This is done using the hrefattribute.

To create a hyperlink to an named anchor in the current HTML document, you would use the # sign and the anchor name like this:

<a href='#Anchor1'>Hyperlink to Anchor Nbr 1</a> Hyperlink to Anchor Nbr 1

To create a hyperlink to another HTML document on your website, in the same directory, just use the filename:

<a href=' somepage.htm'>A link to some page</a> A link to some page

If the HTML document is on your website, but in a different folder, simply specify the folder with the document name:

<a href='foldername/somepage.htm'>A link to some page in foldername</a>

A link to some page in foldername

To create a hyperlink to another HTML document at a different website, you would use the documents' Internet address like this:

<a href='http://www.someplace.com/somepage.htm'>A link to some page at Some Place</a> A link to some page at Some Place

You could also create a hyperlink to a named anchor in another HTML document:

<a href='http://www.someplace.com/somepage.htm#Anchor1'>A link to Anchor Nbr 1 in some page at Some Place</a> A link to Anchor Nbr 1 in some page at Some Place