URI’s full form is Uniform Resource Identifier. It is a general term for all names and addresses that show objects on the World Wide Web (www). It is usually a sequence of characters that identifies the name and location of a logical resource or a file or resource in a similar format.
As mentioned in the above figure, there are two types of URI:
Here are the main differences between URI and URL:
URIURLURI stands for Uniform Resource Identifier. | URL stands for Uniform Resource Locator. |
A URI is a superset of URL that identifies a resource either by URL or URN (Uniform Resource Name) or both. | URL is a subset of URI that specifies where a resource is exists and the mechanism for retrieving it. |
The main aim of URI is to find a resource and differentiate it from other resources using either name or location. | The main aim is to get the location or address of a resource |
Used in HTML, XML and other files XSLT (Extensible Stylesheet Language Transformations) and more. | URL is used to locate only web pages |
In URI, the scheme may be anything like a protocol, specification, name, etc. | The scheme must be a protocol like HTTP, FTP, HTTPS, etc. |
There is no protocol information given in URI. | Protocol information is given in the URL. |
Example of URI: urn:isbn:0-486-27557-4 | Example of URL: https://google.com |
It contains components like scheme, authority, path, query, fragment component, etc. | It contains components such as protocol, domain, path, hash, query string, etc. |
Not all URIs are URLs since a URI can be a name instead of a locator. | All URLs can be URIs |
Ever curious about what that abbreviation stands for? fullforms has got them all listed out for you to explore. Simply,Choose a subject/topic and get started on a self-paced learning journey in a world of fullforms.
Allow To Receive Free Coins Credit 🪙