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
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;
- Scheme(https:// (also known as “protocol”))
- Domain (www.pakainfo.org.co)
- Subdomain (www)
- DomainName (pakainfo.org.co)
- TLD (.co (top level domain))
- SLD (.org (second level domain))
- Port (:80)
- Path (/blog/welcome.html)
- Directory Path (/blog/)
- File Path (welcome.html)
- File Name (welcome)
- File Extension (.html)
- Query (?api=2022&members=admin)
- Parameter and Value Pair (api=2022)
- Parameter and Value Pair seperator (&)
- Fragment (#here)
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.