What is the difference between Absolute and Relative links?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sonia sharma
    Senior Member
    • Jul 2015
    • 156

    What is the difference between Absolute and Relative links?

    1.Absolute links point to a specific point on the Internet. They are in the familiar URL form used to tell WWW browsers where to go.
    for instance, suppose this is a URL "http://www.ee.pdx.edu/~jeskem/chpfaq.html " . Any where a link to this URL is put, it will point to this document, and only this document. If this document were to move, all the links which point to it would have to be changed. Absolute URLs are usually used to link to documents on other sites, that is, if a document is at site www.mysite.org, any link in that document which does not point to a document on www.mysite.com would be an absolute link.
    2.Relative links are simply file and directory pathnames described relative to the ABSOLUTE URL of the document which contains the links. So, if a document has a link to a file on the same server, the link can and should be a relative link. Relative links allow a set of Web documents to be portable across different sites, since no matter where the set is, the links are defined relative to the documents. So if, if you move a site which employs relative links only, except for links to other servers, to a different location, the still work as before. If you had used absolute links, you would have to change the links to every document you moved.
  • lisajohn
    Senior Member
    • May 2007
    • 218

    #2
    Relative is always in proportion to a whole. Absolute is the total of all existence. 2. Relative is dependent while absolute is independent.

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎