top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the difference between URL, URI and URN?

+1 vote
367 views
What is the difference between URL, URI and URN?
posted Mar 6, 2016 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
 
Best answer

URL - Uniform Resource Locator
It contains information about how to fetch resource from its location
Ex :- http://firsturl.com/
URL always starts with a protocol “http”, having host name and document path

URN :- Uniform Resource Name
It identifies a resource by name. It always starts with a prefix urn:
Ex :- url:number:76d76s

URI - Uniform Resource Indicator
It encompasses both URLs and URNs.
Ex :- Data URI contains information in a given way
data:Hello%20World

It is not a URL nor URN because URI contains the data.

answer Mar 7, 2016 by Neha Gupta
...