9 Parts of URL

Parts of URL | Code Architects

URL means Uniform Resource Locator. URL is a address of the website. IN this blog article you will learn about several parts of URL when broken down. Each website has a individual & unique URL. It is a most important component of the World Wide Web, allowing us to easily access the vast amount of information available online.

But what exactly makes up a URL? A typical URL consists of several different parts, each serving a unique function. Here are the main parts of URL and what they do:

  1. Protocol
  2. Subdomain
  3. Domain
  4. Top level domain
  5. port
  6. path
  7. query
  8. parameters
  9. fragments

As web users, we often take for granted the complex structure behind the URLs that we type into our browsers every day. But have you ever stopped to think about the different parts that make up a URL? You will not always find all the parts of URL. Let discuss them one by one.

Example for parts of url | Code Architects

Protocol

The protocol, also known as the scheme, is the first part of a URL. It represents the sets of rules that decide how files are displayed, formatted, or transferred across the web. The most common protocol is “http,” which stands for Hypertext Transfer Protocol, but there are others, such as “https” (Secure Hypertext Transfer Protocol) and “ftp” (File Transfer Protocol).

The https is the secured version of http.

Subdomain

www is the most common subdomain. The subdomain can also specify the type of content to be delivered on the Webpage. It allows websites to separate and organize content for a specific function — such as a blog or an online store.

eg. store.teamcodearchitects.com

Domain

The domain is the actual name of the website. The domain names are unique for each website since they determine the address of the website on the internet. It is main in parts of URL.

eg. Facebook.com

Top level domain

.com shows a commercial sites. .org indicates a organization website. The top level domain is also a factor for price when buying a domain.

Some common top level domains are .in, .com, .us.

Port

Port is used for specific purpose of the website. The default port of HTTP request is 80. HTTPS website uses the 443 port number. Browsers connect to the port initially to load the website.

Subdirectory / Path

The path shows where the files are stored in the server. Now a days it does not represent a path Since routing is added in main structure of website.

eg. https://teamcodearchitects.com/blog/add-google-translate-to-your-website/

Query

In the URL when a variable is followed by a question mark(?). Generally it shows a query is performed on a website to search & display those results. In the following example the ‘s’ is a query.

eg. https://teamcodearchitects.com/?s=css

Parameters

The parameters are generally the values when a search is performed on the website. The value can be a Number, Search Term, or a ID. The ID may also be encrypted (So as the search term, name are not a part of URL). In the example the ‘css’ is the parameter.

eg. https://teamcodearchitects.com/?s=css

Fragments

The fragments are proceeded by a #(hash). That redirects to a another section in the same page. It is accessed from a id attribute of an HTML element. Although the URL structure can be sometimes confusing to the normal user, they are important for enhancing the user experience and making the web app more efficient.

Different parts of a URL work together to provide a unique address for accessing websites and web pages on the internet. Understanding the different parts of a URL can help us better navigate the vast expanse of the internet and access the specific information we are looking for. So the next time you type in a URL, take a moment to appreciate the complex structure behind it.

Thank you for reading the post on Parts of URL. Follow us on Instagram.😍

You can read our other blogs here.

Leave a Comment

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

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

4 × 3 =