What the difference is between a URI and a URL?

Today, We want to share with you uri vs url.In this post we will show you uri, url, urn, hear for what is uri? we will give you demo and example for implement.In this post, we will learn about Get the full URL in PHP with an example.

What the difference is between a URI and a URL

uri vs url vs urn

  • URI => Uniform Resource Identifier Identifies
  • URL => Uniform Resource Locator
  • URN => Uniform Resource Name
Read Also:  Bootstrap Datetimepicker Disable Dates Dynamically

Example of URL:

This example URL has a folder but no extension

https://career.pakainfo.com/category/heavy-industries/
https://www.pakainfo.com/ifsc/
https://www.pakainfo.com/tools/what-is-my-screen-resolution
https://pakainfo.com/tools/word-counter
https://www.pakainfo.com/tools/online-text-case-converter

This example URL has no folder

https://www.pakainfo.com/what-is-sap.html
https://www.pakainfo.com/what-is-my-screen-resolution.html

This example URL has no extension

https://www.pakainfo.com/custom-login-in-laravel/
https://www.pakainfo.com/paypal-referral-earn-2020/
https://www.pakainfo.com/google-adsense-tutorial-with-how-to-make-money/
https://www.pakainfo.com/set-browser-for-get-adsense-high-cpc-ads-step-by-step/

Example of URI

No protocol mentioned

www.pakainfo.com

Domain not mentioned

what-is-sap.html

Protocol mentions

ldap://[2001:db8::7]/c=GB?objectClass?one
mailto:[email protected] 
tel:+1-816-444-7858   
telnet://192.0.2.28:80/

Examples

  • mailto:[email protected] (URL due to the mailto: protocol)
  • http://www.ietf.org/rfc/rfc2396.txt (URL due to the http:// protocol)
  • urn:ietf:rfc:2648 (URN as it does not specify a locator)
  • urn:isbn:0508672084 (URN as it does not specify a locator)
Read Also:  Full Stack Developer | Career Path, Salary, Jobs and Comparison with Software Engineer.

URL — Uniform Resource Locator

  • http://domain-name.com/mypage.html
  • ftp://domain-name.com/download.zip
  • mailto:[email protected]
  • file:///home/user/file.txt
  • tel:1-888-444-9898
  • http://domain-name.com/resource?foo=bar#fragment
  • /other/link.html (A relative URL, only useful in the context of another URL)

I hope you get an idea about uri vs url.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.