Relative Link

Share on Facebook

A link which shows the relation of the current URL to the URL of the page being linked at. Some links only show relative link paths instead of having the entire reference URL within the a href tag. Due to canonicalization and hijacking related issues it is typically preferred to use absolute links over relative links.

Example relative link

<a href=”../folder/filename.html“>Cool Stuff</a>

Example absolute link

<a href=”http://moonviper.com/folder/filename.html“>Cool Stuff</a>

Our newsletter gives you tips and tricks you need to build your website. It's free, and you can unsubscribe at any time.

Loading...Loading...





Loading...Loading...