Let’s take a closer look to understand the difference between them.

Uniform Resource Locator (URL)

A URL is a string of characters used to access the information or a resource by using the address of the resource location.

Syntax of URL

In this syntax, the scheme provides details about the protocol in use like HTTPS, FTP, and HTTP. The subdomain element is not mandatory. After that, it has a second-level domain, which is the domain address. And finally, the subfolder, if there is any, takes the user to the exact target location.

Example of URL

Uniform Resource Name (URN)

Uniform Resource Name does not offer the protocol used to access the resource or the resource’s address, but it does provide information about the resource itself. It includes only the name or identification of the resource.

Syntax of URN

Each URN consists of at least three parts.

Example of URN

ISBN – Unique identifier for books

Uniform Resource Identifier (URI)

A URI is a standard method for identifying resources on the internet by their location, name, or both. URN and URL together are known as URI.

Syntax of URI

In this syntax, the scheme provides details about the protocol in use. Authority attribute identifies the domain address. The path attribute displays the resource’s whole path, and the query represents a request action. And finally, the partial component of a resource is referred to as a fragment.

Example of URI

Every syntax element isn’t mandatory in a URI all the time. It only requires a scheme name and a file path mainly. Note – All URLs are URI. But not every URI comes under URL

Conclusion

I hope you have gained a better understanding of URI, URL, and URN. You may also be interested in reading about the URL blacklist and how to fix it.

Understanding Difference Between URL  URI and URN - 7Understanding Difference Between URL  URI and URN - 75Understanding Difference Between URL  URI and URN - 13Understanding Difference Between URL  URI and URN - 10Understanding Difference Between URL  URI and URN - 15Understanding Difference Between URL  URI and URN - 10Understanding Difference Between URL  URI and URN - 4Understanding Difference Between URL  URI and URN - 73Understanding Difference Between URL  URI and URN - 19Understanding Difference Between URL  URI and URN - 18Understanding Difference Between URL  URI and URN - 36Understanding Difference Between URL  URI and URN - 50Understanding Difference Between URL  URI and URN - 38Understanding Difference Between URL  URI and URN - 9Understanding Difference Between URL  URI and URN - 82Understanding Difference Between URL  URI and URN - 61Understanding Difference Between URL  URI and URN - 67Understanding Difference Between URL  URI and URN - 42Understanding Difference Between URL  URI and URN - 97Understanding Difference Between URL  URI and URN - 60Understanding Difference Between URL  URI and URN - 86Understanding Difference Between URL  URI and URN - 6Understanding Difference Between URL  URI and URN - 11Understanding Difference Between URL  URI and URN - 43Understanding Difference Between URL  URI and URN - 19