The world of Uniform Resource ___
Here the word resource could be anything, take it as a img on your computer for easier understanding
URI
-
URIstands for Uniform Resource Identifier - A
URIcontains two things- Name
- Location
- We need URI so identify the resource from its name and also be able to locate it using location
URL
-
URLstands for Uniform Resource Locator - This is basically the address of the resource.
URN
-
URNstands for Uniform Resource Name - This is basically the name of the resource.
Therefore : URI = URL + URN
The URI generic syntax consists of a hierarchical sequence of five components
URI = scheme:[//authority]path[?query][#fragment]
where the authority component divides into three subcomponents:
authority = [userinfo@]host[:port]
host port
┌───┴───┐ ┌─┴┐
https://localhost:8080/forum/q/?tag=networking#top
└─┬─┘ └───────────┬──────────────┘└───────┬───────┘ └───────────┬─────────────┘ └┬┘
scheme authority path query fragment
I hope you like this article !

Top comments (4)
I've been conflating the two for years. This is helpful to actually get a simple explanation. Thanks!
Nice info. Thankss
This is really helpful man, I used to think while reading about URL and URI.
Excellent information, thanks!