0
Difference between absolute and relative link..?
2 Antworten
+ 2
A relative link is relative to the site/URL the site is hosted on (or to the path in the file system where the site is saved).
For example:
The relative link /pictures/pic01.png will always redirect to the picture pic01.png in the subfolder 'pictures' of the URL it is hosted on. So if the link is used on the URL http://www.example.com/, the full (absolute) link will be http://www.example.com/pictures/pic01.png.
If the same relative link is used on the URL http://www.whatever.co.uk/about/, the full (absolute) link will be http://www.whatever.co.uk/about/pictures/pic01.png.
The absolute link is the full link and can be addressed from everywhere. For example, to link to the picture hosted on http://www.example.com/pictures/pic01.png, the site http://www.whatever.co.uk/ will have to use the absolute link because the picture is not in one of their subfolders, but on a whole other site.
0
absolute takes the height and width and it will overlayed . relative means it will not overlayed and it will be positioned relatively. fixed means it has some qualities like absolute and it will stay where it is.