What’s the difference between URI, URN and URL?
While browsing the web we encounter words like URL, this is a common tech term, but as we go deeper in the tech field, there's another terms that shows up, that's URI and the least common URN.
What the fork are these terms?
The first thing to understand is the wider term, the Uniform Resource Identifier (URI). It does what it says, it's just the identifier of a resource in the internet like a hyper-text document, a file, an image, or anything that can be stored.
Think about the URI as group term, it can refer to an URN or a URL.
The Uniform Resource Name (URN)
This is a formal way of naming a resource, ensuring that this resource name is unique. It's made by following a predefined scheme.
For example, we can use the ISBN scheme as:
The Uniform Resource Locator (URL)
Imagine we want to access the contents of an specific resource, say a book (
Using a protocol before the resource location gives to us the URL.
For example, we can use the Hashnode address:
All the URNs and URLs are URIs, and while the URN only identifies resources without telling you how to access them, the URL do tell you where and how to access the desired resource.
Hope you find this useful, see you next time 👋.
If you noticed any error, please let me know. I'm always up to learning or relearning if necessary.