Core PHP

Explain Different Parts of The URL With Example

In this complete article, we discuss Different Parts of The URL with help of some examples. Before we start, first, we have...

Written by Bikash · 1 min read >
Explain-Different-Parts-of-The-URL-With-Example

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 parameteres.

Example:

https://phpcoder.tech/php-online-editor/

Different Parts of The URL

Different-Parts-of-The-URL
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

  • https://subdomain.phpcoder.tech

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

  • https://phpcoder.tech:80

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.

I hope you all are understand completely.

FAQs: Parts of the URL

  • What are the 3 basic parts of the URL?

    The 3 basic parts of URL are,

    1. Protocol (HTTP or HTTPS)
    2. The Domain Name
    3. Port
    Was this article helpful?
    YesNo
  • What are the main components of a URL?

    Main Components of a URL,

    • The protocol
    • The domain name
    • Port
    Was this article helpful?
    YesNo
  • What is called in URL?

    URL stands for Uniform Resource Locator

    Was this article helpful?
    YesNo
  • Also Check:

    Happy Coding..!

    Was this article helpful?
    YesNo
    Written by Bikash
    My name is Bikash Kr. Panda. I own and operate PHPCODER.TECH. I am a web Programmer by profession and working on more than 50 projects to date. Currently I am working on the web-based project and all the CMS and frameworks which are based on PHP. Profile

    One Reply to “Explain Different Parts of The URL With Example”

    Leave a Reply

    Your email address will not be published. Required fields are marked *