Dec 02, 2025
Linda D. & Simon L.
8min Read
A URL (Uniform Resource Locator) is a unique address that points to a specific resource on the internet, like a web page or a file.
A URL is made up of several key components, each with a specific job. Here’s a quick look at the parts you’ll find in most web addresses:
While most URLs you see are absolute URLs that contain a full address, there are also relative URLs, which point to a file or page within the same website.
Creating a URL is straightforward. It all starts with registering a domain name through a provider like Hostinger and connecting it to a hosting plan, which automatically generates the main URL for your new website.
Hostinger’s complete URL is https://www.hostinger.com and entering it in a browser’s address bar directs users to our website. The same applies to examples like https://www.microsoft.com and https://www.linux.org.
That said, URLs can get more specific.
For example, on our website the relative URL /tutorials/ – this will look like “https://www.hostinger.com/tutorials/” in the browser address bar – leads users to our Tutorials page, and /tutorials/how-to-make-a-website is the URL for our How to make a website article on Hostinger Tutorials.
URLs can also send users to a particular section on a web page. These are called anchor links and look like this: /tutorials/how-to-make-a-website#6_Optimize_Your_Website_for_SEO_and_Conversions
The above URL, for example, sends users to tip number 6 in the How to make a website article.
Lastly, every uploaded image has its own URL, enabling users to access it directly. The following relative URL leads to the featured image of our How to make a website article: /tutorials/wp-content/uploads/sites/2/2021/08/how-to-make-a-website-1.png.

As you can see from the image, a Uniform Resource Locator (URL) consists of multiple parts. To help you better understand, let’s dive deeper into the structure of a URL.
HTTP (Hypertext Transfer Protocol) and HTTPS (Hypertext Transfer Protocol Secure) are protocols for network communication between web servers and browsers. They transmit messages, retrieve information through the Domain Name System (DNS), and return it to the browser.
The protocol in the above diagram is https://.
The difference between HTTP and HTTPS is that the latter encrypts the data transmission process. This security protocol protects a website better and is an essential factor in improving ranking on search results.
Another difference is that HTTPS uses the Transmission Control Protocol/Internet Protocol (TCP/IP) port number 443 encrypted by Transport Layer Security (TLS). Meanwhile, an HTTP URL uses TCP/IP port number 80.
Important! Web browsers can also process other protocols, including FTP and mailto. The former allows file sharing between different web hosts, either local or remote. The latter directs users to a specific email address.

A subdomain consists of any words or phrases that come before a URL’s first dot. The most common type is www. It is the most common subdomain, traditionally used for web content, but it’s not mandatory.
Furthermore, site owners can use any word as a subdomain for website organization purposes, as it points to a specific directory from the primary domain. Some of the most popular options are “blog” and “news.”
For example, while hostinger.com uses www, the subdomain for our Knowledge Base page is “support.” Hence, the support.hostinger.com URL.
A domain name is what users type into their browser’s address bar to reach a website. It consists of a site name and an extension, for example, hostinger.com or yourdomain.com.
Every name is unique, and it represents its corresponding IP address (a numerical identifier like 192.168.1.1). This unique IP address points to the website’s server. In other words, it helps users access websites easily.
Also known as a top-level domain (TLD), it is the part that follows a website name. According to the latest domain name statistics, .com has over 157.2 million registrations, making it the most popular extension.
Here are types of TLD extensions to consider using:
A path to the resource or simply URL path is the part to the right of the TLD. It’s often referred to as the folder structure of the website.
In the URL https://www.hostinger.com/tutorials/how-to-make-a-website, the path to the resource is /tutorials/how-to-make-a-website.
A path to the resource provides additional information to a web server, enabling it to direct users to a specific location. A series of paths to resources may point to a specific page, post, or file.
A URL can have more than one path to resources. When that happens, the forward-slash sign (/) will separate each of them. The more paths to resources a URL contains, the more specific the location is.
Parameters are query strings or URL variables. They’re the portion of a URL following a question mark.
Parameters consist of keys and values separated by an equal sign (=). Furthermore, a URL can have multiple variables. In that case, the ampersand symbol (&) will separate each.
An example of a URL with a parameter is: https://www.example.com/search?q=blue-widgets
In terms of parameter use cases, here are some of the most common ones:
To keep learning, download our free Web Development Glossary for Beginners PDF to have all the key terms in one place.
Download glossary for web beginners
Syntax refers to a set of rules. In the case of a URL syntax, it sets which components and symbols are allowed in a URL. Here’s what a URL’s general syntax looks like:
http://subdomain.domain-name.domain-extension/path-to-resource?parameters
Each component has a fixed position—you can’t rearrange them. The protocol and domain are required, while subdomain, path, parameters, and anchors are optional.
URLs can only use certain characters directly: letters (A-Z, a-z), numbers (0-9), and a few special characters like hyphens (-), underscores (_), and periods (.).
Any other characters, including spaces, need percent encoding (also called URL encoding). This converts characters into a format browsers can process. For example, a percent sign becomes %25, a space becomes %20, and an exclamation mark becomes %21.
URLs can contain an anchor link, also called a page jump or fragment identifier. The element is represented with the number sign (#), which bookmarks a specific part inside a resource.
For example: /tutorials/how-to-make-a-website#6_Optimize_Your_Website_for_SEO_and_Conversions.
With an HTML file containing a page jump, a web browser will go directly to the selected section. For a video or audio document, a modern web browser will find the timestamp that the anchor represents and play accordingly.
The two main types of URLs you’ll encounter are absolute and relative, but there are several other types used for specific functions like marketing and search engine optimization.
Here’s a breakdown of the most common URL types and how they work.
1. Absolute URLs
2. Relative URLs
3. Dynamic URLs
4. Canonical URLs
5. Vanity URLs

A URL can usually be found in the address bar at the top of the web browser’s window. On laptops and desktop computers, a website URL will always be visible in the address bar as users scroll through the web page.
In the case of mobile devices, the default browser behavior causes a URL to disappear as soon as users start scrolling down. However, it will reappear when users scroll up.
If you know the complete website URL, typing it in the address bar is one of the easiest ways to open a URL. If not, here are several other ways to do it:
Creating a functional URL, like hostinger.com, microsoft.com, or linux.org, starts with registering a domain name and connecting it to a web hosting service. The domain forms the core of your URL, while hosting enables the actual website that responds when someone visits that address.
A registrar is a company that manages domain reservations and renewals. Hostinger is one of the most popular hosting providers and domain registrars.

Here is a general step-by-step guide on how to buy a domain:
As the registration isn’t a one-time purchase, every owner should keep track of their domain expiry dates.
Instantly check domain name availability.
Now that you understand all the components that make up a URL, the next step is to have one for your own website. The most important part is the domain name, as it serves as the foundation of your online presence and brand identity.
To guide you through the process, our guide on how to choose a domain name provides a step-by-step walkthrough, from brainstorming ideas to avoiding common mistakes. Taking the time to pick a great domain will ensure your URL is credible, memorable, and easy for people to find.
Comments
August 20 2024
What is url,I think I dont have it
August 21 2024
Hello! A URL (Uniform Resource Locator) is basically the web address you use to visit a website or a specific page on the internet. For example, www.example.com is a URL. It’s the text you type into the address bar at the top of your browser to go to a website. If you have a website, your URL is the address that people use to find it online ;)
November 25 2024
How do i create an URL as an individual?
November 29 2024
Hello! First, you'll need to register a domain name. Once you’ve chosen and purchased your domain, you can link it to a website by setting up hosting or using a website builder. If you just want the URL to redirect to another site (like a social media profile), you can set up URL forwarding in your domain settings ;)