uri:universal Resource Identifier, generic resource identifier; url:uniform Resource Locator, Uniform Resource Locator; where the URL is a subset of the URI. The basic form of an address on the web is a URI, which represents the Uniform Resource identifier. There are two forms of: URLs: the most common form of URIs today is ubiquitous URLs or uniform resource locators. The URI is a simple string that identifies a resource in a uniform (standardized) way. Typically, this string begins with the scheme (the identifier of the namespace that names the URI-a set of related names), and the syntax is as follows: [scheme:] scheme-specific-part The URI begins with a scheme and a colon. Scheme starts with uppercase/lowercase letters, followed by empty or followed by more uppercase/lowercase letters, numbers, plus signs, minus and dot numbers. The colon separates scheme from Scheme-specific-part, and the syntax and semantics of scheme-specific-part (meaning) are determined by the namespace of the URI. As the following example: HTTP://WWW.CNN shun Baidu. Shun Baidu com, where HTTP is scheme,//www.cnn shun Baidu. Shun Baidu com is scheme-specific-part, And its scheme is separated from the scheme-specific-part by a colon. The URI has absolute and relative points, and the absolute URI refers to the URI that begins with scheme (followed by a colon). The aforementioned http://www.cnn shun Baidu. com is an example of an absolute URI, other examples and mailto:[email protected] avoid Baidu Avajeff shun Baidu. com, news shun Baidu: Comp.lang shun Baidu. Java.help and Xyz://whatever. You can think of an absolute URI as referencing a resource in a way that is not dependent on the environment in which the identifier appears. If you use the file system as an analogy, an absolute URI is similar to the path of a file starting from the root directory. Unlike an absolute URI, a relative URI is not a URI that begins with scheme (followed by a colon). An example of this is Articles/artIcles.html. You can think of a relative URI as referencing a resource in a way that relies on the environment in which the identifier appears. If the file system is used as an analogy, the relative URI is similar to the file path starting from the current directory. The URL is the abbreviation for Uniform Resource location, translated as "Uniform Resource Locator." In layman's words, URLs are strings used on the Internet to describe information resources, mainly used in various WWW client programs and server programs, especially the famous mosaic. URLs can be used in a unified format to describe various information resources, including files, server addresses and directories. At present, the biggest disadvantage of is that when the storage location of information resources changes, the URL must be changed accordingly. So people are looking at new ways of representing information resources, such as: URIs (Universal Resource Identifier) that is, "Common resource Identifiers", "Uniform Resource Names" and URC (Uniform Resource citation), which are "Uniform resource references" such as The URI is still under further study. The direction of research is to make up for the current shortcomings of URLs.
Differences and connections between URLs and URIs