Adding links to web pages can be a huge help in allowing a page to flow better. Links enable a reader to navigate quickly to where they want to be. Being able to get to where you want in minimal amount of time creates a better user experience. People like to able to get the information they want without trying to read through a bunch of stuff that does not concern them. Links in a page can able the user to do exactly this. You can create links internal to your page or you can create links external to your page.

An internal link is set up by using the <a> tag along with href. Let us take for instance a table of contents in a web page. You would have your list of sections to goto and set up links to each section to navigate to them quicker without having to go through each section. The code would look something like this:

<h1>Table of Contents</h1>
<p><a href="#section1">Introduction</a>
<a href="#section2">Background</a>
<a href="#section3">some other stuff</a>
….rest of the table of contents
….the document body
<h2 id="section1">Introduction</h2>
…section1 info
<h2 id="section2">Background</h2>
….section2 info
….rest of the table of contents set up

As you can see in our href lines we are referencing by id (this is why there is a # in front of the section name). In our example #section1 refers to id section1, #section2 refers to id section2 so on and so forth. This is an example of an internal link.

An external link we would set up the same way except that in place of our #section1 stuff we would put a web address or a file path on our local machine. The tag would look something like this:

<a href="">Amazon secure link</a>

In our web page the text "Amazon secure link" would be a different color than the other text showing that it is clickable and will be a link. One thing you need to make sure of is that in your link you have the protocol of the site. This will either be http or https. These must be in the link in order for the link to operate properly.

This is just a couple of ways to add links to your web pages. More information can be found at: