What is URI and how is it different from a URL?
Okay, so I keep hearing "what is uri" thrown around, but tbh, it’s kinda confusing. Like, is it the same as a URL? Or something totally different?
From what I *think* I get, a URI is like the big umbrella term for anything that identifies a resource. A URL is just one type of URI—it tells you *where* the resource is (like `https://example.com/page`).
But then there’s also URNs, which are like names (think `urn:isbn:0451450523` for a book). So URI = URL + URN + other stuff?
Can someone confirm if I’m way off or kinda close? And maybe drop some real-world examples?
Also, why does this even matter in web dev? Seems like a nerdy detail, but I bet there’s a reason.
Thanks in advance! 🙏
Okay, so I keep hearing "what is uri" thrown around, but tbh, it’s kinda confusing. Like, is it the same as a URL? Or something totally different?
From what I *think* I get, a URI is like the big umbrella term for anything that identifies a resource. A URL is just one type of URI—it tells you *where* the resource is (like `https://example.com/page`).
But then there’s also URNs, which are like names (think `urn:isbn:0451450523` for a book). So URI = URL + URN + other stuff?
Can someone confirm if I’m way off or kinda close? And maybe drop some real-world examples?
Also, why does this even matter in web dev? Seems like a nerdy detail, but I bet there’s a reason.
Thanks in advance! 🙏
