In xhtml we have absolute links in our a href html tags. So the main question is what is absolute link actually, well absolute links are the links which we link directly to any site or page on a site directly.
What is absolute link?
When we create our site in xhtml we put all our page files inside a folder and link them to each other that is relative linking, but when we link suppose we link any reference to other site from our page we will put complete link with http://www.theirsite.com/theirpage/ this would be a absolute link.
If we are linking our pages absolute that is fine as well cause we are linking them with complete url like <a href=”http://www.mysite.com/mypage”>My page</a> This is internal absolute link and if we link absolute to other site that is external absolute link.
How absolute link works?
When we put absolute link to any text in our site that is something which browser have to go back to internet and grab everything again for that absolute link so that does not mean if your site is open already and user exploring one another page of your site by clicking on a absolute link so browser will just look inside your server cause that’s absolute link browser will go back to internet and will search again for that site and then the page.
Disadvantage of absolute link
There is no search engine disadvantage of absolute link but only speed of pages loading. Cause browser will go again to internet and will grab everything for your site again that can reduce your site’s speed a bit not much but.
XHTML absolute link examples
Following are some examples of absolute links. Internal absolute links inside our site, and external absolute links outside our site.
<!-- Internal xhtml absolute links for our site mysite.com/--> <a href="http://www.mysite.com/index.php">Home</a> <a href="http://www.mysite.com/products.php">Products</a> <a href="http://www.mysite.com/contact.php">Contact Us</a> <!-- external absolute link--> <a href="http://www.gmail.com/">Gmail</a> <a href="http://facebook.com/">Facebook</a> <a href="http://www.facebook.com/myprofile/">My facebook profile</a>
Read about Relative Links
Read About Absolute Links
Find out difference between absolute links and relative links.
We are sorry that this post was not useful for you!
Let us improve this post!
Tell us how we can improve this post?