A URI (Uniform Resource Identifier) is a string used to uniquely identify a resource on the Internet or another network. A URI is used to locate or identify a specific resource, whether it's a web page, a file, an image, a video, or any other type of resource.
A URI can be divided into different parts:
-
URL (Uniform Resource Locator): A specific type of URI used to identify the address of a resource and the mechanism for accessing it. URLs typically include a protocol (such as HTTP or FTP), hostname, port (optional), path, and query string.
-
URN (Uniform Resource Name): A URN is another type of URI used to identify a resource by its name permanently, regardless of its current location or how it is accessed. A well-known example of a URN is the ISBN system for books.
URI is a more general term that encompasses both URLs and URNs. It is an important component of the internet and is used in many applications to access and identify resources.