Absolute links or relative links - which to use?
There seems to be a lot of difference in opinion about which links are most beneficial for your website. So let me give you some facts.
What are absolute links?
An absolute link defines the location of the document in total including the protocol required to get the document, the server to get it from, the directory it is located in and the name of the document itself.
An absolute link will look like this:
<a href=”http://www.navegabem.com/index.html”>Home</a>
What are relative links?
A relative link on the other hand takes advantage of the fact that the server knows where the current document is. Thus, if we want to link to another document in the same directory, we don’t need to write out the full URL. All we need to use is the name of the file.
For example, if we are looking at the link in the previous example, and we want to link to a file called index.html in the same directory, we don’t need to write out the entire URL.
A relative link will look like this:
<a href=”index.html”>Home</a>
What does Google say about relative and absolute links? Read more….
—————————————
Posted by Chris Szabo, MD Navega Bem - Web Design - Madeira island - Portugal
