relative links are start from your base path, for example: <img src="/images/somefile.gif"> Code (markup): Absolute path is full path with domain <img src="http://www.mydomain.com/images/somefile.gif"> Code (markup):
Absolute links are like this : http : // abc.com / index.php Relative links are like this: / index.php If you are linking to some content within your own domain,, you will use relative links.. while linking to contents on other domain you use absolute links..
Relative links are better , you maybe want to copy site db or change domain of site , then if you use absolute , it will not appear yournewdomain.tld but yourcurrentdomain.tld , just suggestion
Not so popular to me but looking at those examples, they are just used for coding and making links to a page or object. <img src="/images/somefile.gif"> - he didn't define the home page for the image is in the your own sub-folder (uploaded on your web hosting) and is applicable in coding your own/hosting site only. <img src="http://www.mydomain.com/images/somefile.gif"> - though it an be used if the image is in your sub-folder, it is normally used to call the image uploaded on not on your site or else where in the internet.