The difference between the URL and the URI

URL (Uniform Resource Locator)

URL (Uniform Resource Locator) is usually defined as a string leading to an address. This is a very commonly used way to locate resources on the web. It provides a way to retrieve the physical location, by describing the network location or primary access mechanism.

The protocol described in the URL is used to retrieve the resource and the resource name. The URL contains http / https at the top if it's a web-type resource. Similarly, the URL will start with ftp if the resource is a file and with mailto if the resource is an email address.

The syntax of a URL is shown below where the main body is used for the protocol and the remainder is used for the resource, including the site name or program name.

https://tipsmake.com/genshin-impact-a-detailed-guide-for-the-beginners-genshin-impact

Here, the domain name describes the server (web service) and the program name (path to the directory and file on the server).

URI (Uniform Resource Identifier)

Similar to a URL, a Uniform Resource Identifier (URI) is also a string of characters that identifies a resource on the web using the location, name, or both of these elements. It allows for uniform identification of resources.

The URI is also grouped as a locator, name, or both of these (suggesting it can describe a URL, URN, or both). The word 'identifier' in the URI refers to resources, regardless of the technique used.

The "UR" part of the URI is the same as in the URL, where a protocol is used to specify the method to access the resource and the name of the resource is further covered in the URL. URLs can be a type of URI that is not persistent. URN (Uniform Resource Name) needs to be unique and global.

The difference between the URL and the URI Picture 1

URL is a "subset" of the URI

The difference between the URL and the URI

URL 
  1. URL is used to describe an item's characteristics. 
  2. URLs that link a website, a component of the website or a program on a web page with the help of accessing methods such as protocols.
  3. The URL provides detailed information about the type of protocol to be used.
  4. URL is a type of URI. 
URI
  1. The URI provides a technique for identifying an item's identity.
  2. The URI is used to distinguish one resource from another regardless of the method used.
  3. The URI does not contain a protocol specification.
  4. The URI is the "parent set" of the URL.
5 ★ | 2 Vote

May be interested

  • Difference between GDDR RAM and RAMDifference between GDDR RAM and RAM
    gddr ram and system ram are common terms that you will come across in the desktop world. while these terms may seem similar and interchangeable, they are not.
  • Difference between Internet and WebDifference between Internet and Web
    what are the similarities and differences between the internet and the web? for those who understand information technology, these two concepts are no longer strange, but for those who are just starting to learn, they may not clearly understand the concept as well. their effects, the content below, taimienphi will show you the difference between the internet and the web.
  • Difference between NUC and SBCDifference between NUC and SBC
    people often compare intel's next unit of computing (nuc) devices to single-board computers. the comparison is based on the fact that many people think that these two devices are more or less similar. although not completely unfounded, this assumption is false.
  • The difference between TCP and UDP protocolsThe difference between TCP and UDP protocols
    you may have seen tcp and udp when setting up port forwarding on the router or when configuring the firewall software. these two protocols are used for different data types.
  • If you can find a difference in 10 seconds, you're really a genius!If you can find a difference in 10 seconds, you're really a genius!
    if you can find a difference in 10 seconds, you're really a genius! try fastness with 6 images below!
  • The difference between Sass and SCSS: Which CSS Preprocessor is right for you?The difference between Sass and SCSS: Which CSS Preprocessor is right for you?
    the difference between sass and scss syntax is very difficult to detect. so, make sure you understand them before making a choice.
  • What is the difference between HDR and 4K?What is the difference between HDR and 4K?
    when buying a tv, the terms 4k and hdr may come across. both of these technologies improve image quality. however, they do this in very different ways.
  • The difference between MP3 and MP4The difference between MP3 and MP4
    in this article, we will explain the differences of mp3 and mp4 that people need to know. at the same time, after reading, readers will know exactly what file types they need.
  • Difference between C and C++Difference between C and C++
    c and c++ may seem similar at first glance, but they have a lot of differences. let tipsmake.com list the differences between c and c++!
  • Difference between JSON and XMLDifference between JSON and XML
    json and xml are the two main data exchange standards that web 2.0 applications commonly use. they are data formats that allow sending and receiving data between the client and the web server.