Table of contents
Definition
A relative URL is a partial URL path that is provided relative to the page or site that it's on.
It's usually up to the platform, browser, or viewer of the URL to match and put together the other parts of the URL to make it complete. For example, append the website's domain name and TLD to the partial URL.
Use Cases and Examples
Here are some examples of relative URLs:
When any of the above links are clicked, the domain name of the blog will be prepended to it, thus ending up with https://www.eddymens.com/blog
and https://www.eddymens.com/about.
Relative URLs are used when the page being referenced can be found on the same site its mentioned on.
Summary
Check out this post to learn about Absolute URLs [→]
Here is another article you might like 😊 What is a Repository?