Quick Answer: A URL (Uniform Resource Locator) is the address used to locate a specific resource on the internet. Commonly known as a web address, it tells a browser where a resource is located and how to access it.
A resource can be almost anything available online, including:
- Webpages and blog posts
- Images and videos
- Documents and downloadable files
- Online tools and applications
For example, when you type https://www.example.com into your browser, the URL tells your browser where to find the website and how to request its content.
In simple terms, a URL is the address you use to find and access something on the internet.
What Are the Different Parts of a URL?
A URL consists of several components, each serving a specific purpose. Some parts are mandatory, while others are optional depending on the resource and how the website works.
Consider the following URL:
https://www.soapboxdigital.co.uk/blog/what-is-a-url?utm_source=google#definition
This URL contains several components, including the protocol, subdomain, domain name, path, query string and fragment identifier.
1. Protocol
The protocol tells the browser how to communicate with the server to retrieve a resource. It appears at the beginning of a URL, before the domain name.
Common URL protocols include:
- HTTP: Hypertext Transfer Protocol, used to transfer data between browsers and web servers.
- HTTPS: Hypertext Transfer Protocol Secure, which encrypts communication between a browser and a server.
- FTP: File Transfer Protocol, traditionally used to transfer files between computers and servers.
- Mailto: A URL scheme that opens an email application to compose a message.
For example, in https://www.example.com, HTTPS is the protocol.
HTTPS is generally preferred for websites because it encrypts data exchanged between users and websites, helping protect sensitive information.
2. Subdomain
A subdomain is an additional part of a domain name that appears before the main domain. It is commonly used to organise or separate different sections of a website.
For example, in https://www.soapboxdigital.co.uk, www is the subdomain.
Other common examples include:
- blog.example.com – A blog section.
- shop.example.com – An online store.
- support.example.com – A customer support section.
Subdomains can help websites organise content, applications, or services under different web addresses.
3. Domain Name
A domain name is the human-readable address of a website. It helps users access a website without having to remember its numerical IP address.
For example, soapboxdigital.co.uk is the domain name in the URL:
https://www.soapboxdigital.co.uk/blog/what-is-a-url
Domain names are connected to IP addresses through the Domain Name System (DNS), which helps browsers locate the appropriate server.
4. Port Number
A port number identifies a specific communication endpoint on a server. It appears after the domain name, separated by a colon.
For example:
- :80 – The default port for HTTP.
- :443 – The default port for HTTPS.
A URL with a port number might look like this:
https://example.com:443/blog
Most websites do not display port numbers because browsers automatically use the standard ports associated with their protocols.
5. Path
The path identifies a particular resource or location within a website. It appears after the domain name and is often separated into sections using forward slashes.
For example:
https://www.example.com/blog/what-is-a-url
Here, /blog/what-is-a-url is the path.
The path can point to a blog post, product page, category page, document or other resource. Modern websites often use paths as logical addresses rather than actual folder or file locations on a server.
6. Query String
A query string contains additional information passed through a URL. It usually appears after a question mark (?) and consists of parameters and their corresponding values.
For example:
https://www.example.com/search?query=url&lang=en
In this example:
- query=url specifies the search term.
- lang=en specifies the language.
- & separates the parameters.
Query strings are commonly used for search results, filters, tracking parameters, sorting options and dynamically generated pages.
7. Fragment Identifier
A fragment identifier points to a specific section or location within a webpage or resource. It appears after a hash symbol (#).
For example:
https://www.example.com/blog/what-is-a-url#definition
Here, #definition directs the browser to a specific section of the webpage, assuming that section exists.
Fragment identifiers are commonly used for table-of-contents links, page navigation and jumping to specific content. For standard webpages, the fragment is generally handled by the browser and is not sent to the server as part of the HTTP request.
Why Do URLs Matter for Users and Websites?
URLs play an important role in how users navigate the internet and how websites organise and deliver content.
Here are some of the main reasons URLs matter:
- Easy navigation: URLs help users access specific webpages, resources and online services.
- Content organisation: Website owners use URLs to structure content into categories, directories and sections.
- Search engine crawling: URLs help search engines discover, crawl and access webpages.
- Indexing: Search engines use URLs to identify and process pages that may be included in their search indexes.
- User experience: Descriptive and readable URLs can help users understand what a webpage is about before clicking it.
- Sharing content: URLs allow users to share specific webpages, documents, and other resources.
- Website analytics: Query parameters can help website owners track campaigns, traffic sources, and user activity.
From an SEO perspective, a well-structured URL can make a webpage easier to understand for users and search engines. However, URL structure alone does not guarantee better rankings.
What Are the Types of URLs?
URLs are commonly classified into two types based on how they reference resources: absolute URLs and relative URLs.
1. Absolute URL
An absolute URL contains the complete address required to locate a resource, including the protocol and domain name, along with any other relevant components.
For example:
https://www.soapboxdigital.co.uk/about
An absolute URL specifies the website and the location of the resource. It can be used to link to pages on the same website or to pages on external websites.
Absolute URLs are commonly used for external links, canonical tags, sitemaps and other situations where the full address is required.
2. Relative URL
A relative URL specifies the location of a resource in relation to the current page or website context. It does not include the full domain and protocol.
For example:
- /about
- /blog/what-is-a-url
- contact/index.html
If a webpage on https://www.example.com links to /about, the browser resolves that relative URL to https://www.example.com/about.
Relative URLs are commonly used for internal links because they allow website owners to link to pages without repeatedly specifying the complete domain name.
What Are the Different Protocols Used in URLs?
Protocols define how information is communicated between devices, servers and applications. Different URL schemes are used for different purposes.
HTTP
HTTP stands for Hypertext Transfer Protocol. It is used to transfer information between web browsers and web servers.
HTTP is the foundation of communication for traditional web browsing, although secure HTTPS connections are now widely used.
HTTPS
HTTPS stands for Hypertext Transfer Protocol Secure. It uses encryption, typically through TLS, to protect communication between a browser and a website.
HTTPS helps protect information such as login credentials, payment details and other data transmitted between users and websites.
FTP
FTP stands for File Transfer Protocol. It was traditionally used to transfer files between computers and servers.
Although FTP remains relevant in some environments, secure alternatives such as SFTP are commonly used for file transfers today.
Mailto
The mailto: scheme is used to open an email application and prepare an email message.
For example:
mailto:info@soapboxdigital.co.uk
Clicking this link can open the user’s configured email application with the recipient address already filled in.
How to Use a URL?
Using a URL is simple. You can use it to access websites, share resources, navigate to specific sections or open other applications.
1. Open a Webpage
Copy or type a URL into your browser’s address bar and press Enter.
For example:
https://www.example.com
Your browser will use the URL to locate and retrieve the requested resource.
2. Share or Bookmark Content
You can copy a URL from your browser’s address bar and share it with someone else. It allows them to access the same webpage or resource, provided they have the necessary permissions.
You can also bookmark URLs to save webpages for future visits.
3. Jump to a Specific Section
Some URLs contain fragment identifiers that direct users to a specific section of a webpage.
For example:
https://www.example.com/guide#pricing
When opened, the browser may automatically scroll to the section associated with the pricing identifier.
4. Use Query Parameters
URLs containing query parameters can provide additional instructions or information to a website.
For example:
https://www.example.com/search?query=SEO
This URL may display search results for the term SEO.
Query parameters can also be used to filter products, sort results or track marketing campaigns.
5. Trigger Other Applications
Some URL schemes can open applications other than web browsers.
For example, a mailto: link can open an email application, while certain other schemes can open supported apps, depending on the device and software installed.
Conclusion
A URL (Uniform Resource Locator) is the web address used to locate and access resources on the internet. It consists of different components, including the protocol, domain name, path, query string and fragment identifier, each serving a specific purpose.
Understanding What Is a URL helps you navigate websites, share content, understand website structure and learn how search engines access webpages. Whether you are browsing the internet, managing a website or learning Technical SEO, understanding URLs is an essential part of working with the web.