parts of a url – What is a URL (Uniform Resource Locator)?

Different Parts of a URL for The protocol, The domain name, The subdomain, Port, Path, Query, Parameters and Fragment.

parts of a url

parts of a url – URL (Uniform Resource Locator) – Explain Different Parts of The URL With Example. Let’s break down this URL structure below. A URL consists of five parts: the scheme, subdomain, top-level domain, second-level domain, and subdirectory.

The Parts of a URL OR The components of a URL

URL Structure – URL stands for Uniform Resource Locator

Scheme
https://

Subdomain
https://www.

Domain Name OR Second-level Domain
https://www.pakainfo.

Top-level Domain
https://www.pakainfo.co.co

Read Also:  Angular 6 Send Email Example Tutorial From Scratch

Port Number :
https://www.pakainfo.co.co:443

Path :
https://www.pakainfo.co.co:443/blog/article/search

Query String Separator :
https://www.pakainfo.co.co:443/blog/article/search?

Query String :
https://www.pakainfo.co.co:443/blog/article/search?docid=720&hl=en

Fragment :
https://www.pakainfo.co.co:443/blog/article/search?docid=720&hl=en#dayone

Parameters

q=anatomy+of+a+url
ie=utf-8
oe=utf-8
aq=t
rls=org.mozilla:en-GB:official
client=firefox-a

Components of a URL

https://www.pakainfo.com/category-A/subcategory-A1/model-123.html

FAQs: Parts of the URL

What are the 3 basic parts of the URL?

  • Protocol (HTTP or HTTPS)
  • The Domain Name
  • Port

What are the main components of a URL?

  • The protocol
  • The domain name
  • Port

What is called in URL?

URL stands for Uniform Resource Locator

Depends on how deep you want to go :

Example URL:
https://www.pakainfo.org:80/blog/welcome.html?api=2022&members=admin#here

breaks down into;

  1. Scheme(https:// (also known as “protocol”))
  2. Domain (www.pakainfo.org.co)
  3. Subdomain (www)
  4. DomainName (pakainfo.org.co)
  5. TLD (.co (top level domain))
  6. SLD (.org (second level domain))
  7. Port (:80)
  8. Path (/blog/welcome.html)
  9. Directory Path (/blog/)
  10. File Path (welcome.html)
  11. File Name (welcome)
  12. File Extension (.html)
  13. Query (?api=2022&members=admin)
  14. Parameter and Value Pair (api=2022)
  15. Parameter and Value Pair seperator (&)
  16. Fragment (#here)
Read Also:  JavaScript Client side Password hashing and encryption

Don’t Miss : Get the full URL in PHP

I hope you get an idea about parts of a 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.