urn vs url vs uri

Firstly, know that:
- URLs are a type of URI
- URNs are a type of URI
- URCs are a type of URI
- etc..

---
URI 
 - a standard for identifying documents using a short string of numbers, 
letters, and symbols.
 - defined by https://datatracker.ietf.org/doc/html/rfc3986
 
Examples:
  - URLs
  - URNs
  - URCs
  - ...
 
--- 
URL
 - Contains information about how to fetch a resource from its location.
 - Always start with the protocol
 - Can be relative

Examples:
 - http://example.com/mypage.html
 - file:///home/user/file.txt
 - tel:1-888-555-5555
 
--- 
URN
 - Identifies a resource by a unique and persistent name, but doesn't necessarily tell you how to locate it on the internet. 
 - It usually starts with the prefix urn:

Examples:
 - urn:isbn:0451450523 to identify a book by its ISBN number.
 - urn:uuid:6e8bc430-9c3a-11d9-9669-0800200c9a66 a globally unique identifier
 
--- 
URC
 - Points to meta data about a document rather than to the document itself. 
An example of a URC is one that points to the HTML source code of a page

Examples:
 - like: view-source:http://example.com/

Are there any code examples left?
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source