Explain Different Parts of The URL With Example
Originally published by: Explain Different Parts of The URL With Example — PHPCODER.TECH
In this complete article, we discuss Different Parts of The URL with help of some examples. Before we start, first, we have to know briefly about URLs or What are the URLs? and What is a Website URL?
What is a URL?
URL is the global address of web pages, web documents, or any file on the web or internet. URL stands for Uniform Resource Locator.
All URLs are created by multiple parts, for example protocol, domain name and parameters.
Example:
Different Parts of The URL
- The protocol
- The domain name
- The subdomain
- Port
- Path
- Query
- Parameters
- Fragment
The Protocol
https://phpcoder.tech/php-online-editor/
The protocol is the first part of the URL and also called schema. Protocols are used to decide how files are displayed or transferred across the web.
For example HTTP (Hypertext Transfer Protocol) part of the URL represents that the page displayed in HTML format. FTP (File Transfer Protocol) which is used to transfer files local to server.
The Domain Name
The domain names are the actual address of the websites and always unique. Domain name also is the actual name of the websites.
For example domain names are like, “phpcoder.tech”, “google.com” or “google” etc.
The Subdomain
Subdomains are generally used to create new site with a new name of our parent domain. Whatever you can create the name of the subdomain.
The Port
Ports are the reserved channel which are used to access the resources from the server.
Conclusion
Here we learn about the website URL, what is a website URL? and what parts are used to make a URL.
We list out the parts of URL with and image illustrator.