codeblog

URI | URL | URN

The world of Uniform Resource ___

sum-up

Here the word resource could be anything, take it as a img on your computer for easier understanding

URI

URL

URN

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]

Wikipedia img

          userinfo       host      port
          ┌──┴───┐ ┌──────┴──────┐ ┌┴┐
  https://john.doe@www.example.com:123/forum/q/?tag=networking#top
  └─┬─┘   └───────────┬──────────────┘└───────┬───────┘ └───────────┬─────────────┘ └┬┘
  scheme          authority                  path                 query           fragment

I hope you like this article !