What is a URL?


#1

Question

What is a URL?

Answer

URL stands for Uniform Resource Locator, which is the address of a unique resource on the web and can be an HTML page, image, stylesheet, etc.

URLs can be absolute (full) URLs or relative URLs. An absolute URL contains the domain name of the resource, like www.codecademy.com and the path to the exact file, like /learn. Altogether an absolute URL would look like this: www.codecademy.com/learn. A relative URL is a URL that is called from inside the current document and requires the exact path to the file but not the domain name. For example, a URL that links to an about.html page inside the same project folder as an index.html page would look like this: about.html.