Relative Addressing
What is relative addressing?
If you are creating a link to a page within your own website, you can use relative addressing. This means that you give the URL of the page you are linking to, relative to the page you are linking from.This way of writing links is shorter, so your code is clearer to read through, and more flexible. If you use links like this within your website you can more easily change the structure of the site without having to rewrite a lot of the code to reflect the changes in directory names and locations.
How to use relative addressing
When writing the link, leave out the domain name from the address, and simply use the folders you access from the one you are in to reach the linked page. If it is in a higher folder, you can specify moving up one level in the directory by using ../.Linking to a page in a lower directory would look like;
<a href="next_directory/page.html">
Linking to a page in a higher directory would look like;
<a href="../page.html">


