i'm trying to understand absolute and relative Url adresses; however, when i attempted an exercise, i couldn't solve it. Here is the exercise:
Given the following URL address
http://www.unsite.org/a/b/index.html , the document
index.html contains 3 relatives URL addresses:
<img src="../logo.png" alt="Logo de l’entreprise"/> //Line 1 <img src="/images/logo.png" alt="Logo de l’entreprise"/> //Line 2 <img src="images/logo.png" alt="Logo de l’entreprise"/> //Line 3
Give the corresponding absolute URL of each of them. -__-.
Can someone also explain the difference between
Line 2 and
Line 3 ?
I understand that (for line 2 and 3 )
logo.png is in the folder
images which is in the same directory as
Line 1 logo.png is in the parent folder of
index.html and that's pretty much it i understand but i still don't know how to solve this exercise. Help please