answersLogoWhite

0


Best Answer

An absolute path refers to the path to a file on a computer. For example, on a Unix system, an absolute path begins with a '/' and on a Microsoft Windows machine, it will begin with a drive letter, a ':' and a backslash (eg 'C:\') or a '\\' indicating a path to another computer.

A relative path is the path to a file from the current directory. On a unix system this path will begin with a character other than a '/' (any other character could begin a relative path). For example, if one is currently in the directory /home/user42/ and there is a directory named /home/user42/mail/ then the relative path to mail is simply 'mail/'. If there is a directory /home/user41/songs/ then the relative path is '../user41/songs/'. If one is in the directory /home/ then the relative paths are user42/mail/ and user41/songs/, respectively.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

With an absolute path name you can reference any file or directory on the system from anywhere.

A relative pathname references a file or directory that is relative to the directory you are now in. It is restricted to the directory tree that you are currently using.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago
First AnswerThe relative URL is a component of two part the CPU and the monitor. The absolute URL is between the two part of the relative URL. Second AnswerA relative URL relates to the current folder whereas an absolute URL is complete with domain and doesn't depend on the current folder.

Examples:

Let's say your page is located at:

www.mydomain.com/public/hobbies

and in this "hobbies" folder, you have a file called "webdesign.html"

The relative URL for the file is simply "webdesign.html" since the file resides in the same folder.

The absolute URL for the file is "www.mydomain.com/public/hobbies/webdesign.html"

If you had a file in the "public" folder called "history.html" a relative URL would be written as "../history.html" since you would first need to back up one level to the public folder.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between relative URL and absolute URL?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is an absolute link in HTML?

An absolute link in HTML is a link that goes to an absolute URL. There are two kinds of URLs used in HTML. The first is relative. It give the path from the current document to the document you're after. Normally you use a relative link to link to another page on your own site. For instance this link:Index Page would link to the index page of the current directory that the user was browsing.An absolute URL is complete, like What_is_an_absolute_link_in_HTML. An absolute link uses that URLWhat_is_an_absolute_link_in_HTML">This QuestionIt's called absolute, because that is the definitivelocation of the resource.


What is the difference between relative path and absolute path?

Absolute path contains full name of file including the source, for instance, c:\Windows\Temp\log.txt. Relative path contains only the path relativaly to a certain folder, for instance, relative path of log.txt relativaly to the folder Windows is Temp\log.txt.


Difference between URL and HTTP referer?

The difference between URL and HTTP is that a URL is the actual address in the web bar. HTTP is the server or protocol the network connects through. URL stands for Uniform Resource Locator and HTTP stands for Hypertext Transfer Protocol.


What is relative URL?

Any URL that doesn't start with a scheme name (like http:, ftp:, mailto:) is a relative URL. You can read more at http://tools.ietf.org/html/rfc1738


What is the difference between websites www.computertehcnolyg.com and www.computertechnology.com?

One of the URL's is Spelt Wrong!


What is the difference between seo and url?

SEO means Search Engine Optimisation - the process of helping search engines recognise the importance and topic of a web page. URL means Uniform Resource Locator. The URL of this page is: URLs are important in SEO because they are one of many good ways to help explain - or determine - what a page is about. For example, the URL of this page contains the words answers, difference, seo and URL. As a result, a search engine is slightly more likely to deliver this page when somebody searches for a query like "difference between seo and URL". But there are many other factors in SEO. URL is just one.


What is the difference between quickbooks pro and quickbooks premium?

To get to know these, check these URL, you will get the chart where difference are being shown: http://www.qbconvert.com/Differences-between-Enterprise-Premier-and-Pro.aspx


Difference between oldtrends and new trend in HR?

GolfClubs365 offers Better [url=http://www.golfclubs365.com/]Golf Equipment[/url] including [url=http://www.golfclubs365.com/]Golf Clubs[/url], Accessories, Shoes and Bags for all your golf needs.


Difference between ip address and URL?

An IP address is a series of numbers used to identify a domain name or certain computer online. A URL is the address of a website online.


What is the difference between content filtering and URL filtering?

A URL filter uses a URL database with verified domains to block domains while a content filter guesses the nature of each page of each web site "on the fly" URL scanning web pages for words.


What is the difference between an ISP and a URL?

ISP is an Internet Service Provider such as: AOL, Comcast, Netzero, etc URL stands for Uniform Resource Locator basically its a website address like www.wiki.answers.com.


What is the difference between URL and bookmark?

A URL, or Universal Resource Locator, is a character string that refers to an Internet source - often these are websites, but they can also be media files - such as images or sound files. A bookmark is a URL that's been saved by a particular browser so that the specific URL can be easily found in the future.