What Is a URL? (Beginner's Guide + Examples) - Logilax (2024)

URL stands for Uniform Resource Locator. It is one of the basic building blocks of the Web.

URL address makes it possible for a browser to retrieve resources from a server.

A common example of a URL is a website URL, such as www.example.com. When you enter a URL into a URL bar, the browser gets the information behind the address and displays it as a website.

Here is the URL structure:

What Is a URL? (Beginner's Guide + Examples) - Logilax (1)

This guide teaches you all the basics of URLs.

You do not need a technical or coding background to follow this guide.

If you are just a curious learner this guide is for you. If you happen to be a website owner, such as a blogger, you will also benefit from the information in this guide.

Let’s start by taking a look at the different URL parts.

Understanding URL Parts

You have probably seen thousands of different-looking URLs in your life.

  • https://www.example.com/blog/what-is-a-url#introduction
  • https://example.com
  • https://example.com/resources?key1=value1&key2=value2

Some URLs are short and concise, whereas others are unreadable and long.

But what makes up a URL? Even though you may have seen infinitely long URLs, they all consist of these 7 main parts:

  1. Protocol
  2. Subdomain
  3. Domain Name
  4. Port
  5. File Path
  6. Query Parameters
  7. Fragment
What Is a URL? (Beginner's Guide + Examples) - Logilax (2)

Notice that not all URLs need to have all these parts in place.

For instance, you don’t usually specify the port, query parameters, or the fragment. But it’s still worthwhile understanding how all the URL parts work.

Let’s take a look at each URL part in-depth.

1. Protocol

The protocol is the very first part of a URL. It is sometimes also called the scheme.

For example:

http://www.example.com

The URL protocol specifies a set of rules based on which a resource is:

  • Transferred
  • Formatted
  • Displayed

The most popular protocol is the HTTP protocol.

HTTP stands for hypertext transfer protocol. This means that a page will be displayed in a hypertext format. Hypertext format refers to HTML, which is used to build websites. Hypertext as a concept means that in addition to text, the data consists of hypermedia, such as links or images.

What Is a URL? (Beginner's Guide + Examples) - Logilax (3)

These days, you do not see HTTP that much anymore.

Instead, you use HTTPS, which is a more secure version of the HTTP protocol. At the end of this guide, you are going to find a more in-depth explanation of the difference between HTTP and HTTPS.

As you might imagine, HTTP is not the only protocol that there is. Other popular protocols include:

  • FTP or File Transfer Protocol. As the name suggests, this protocol can transfer files over the internet.
  • SMTP or Single Mail Transfer Protocol. This protocol can be used for sending emails with mailing servers.

For example, an FTP URL might look something like this:

ftp://alice_jones:BlfExP#3@example.com/data.gz

2. Subdomain

A subdomain is a part that comes before the actual domain name. The most common subdomain is the www subdomain. This basically means that the website is part of the world wide web.

http://www.example.com

The subdomain can also be something else than www. Usually, websites use subdomains to split their website into logical pieces.

For example:

  • blog.example.com
  • store.example.com
  • support.example.com

Here the blog, store, and support are the subdomains of the example.com domain. As the names suggest, these subdomains split the website into logical groups based on content.

3. Domain

The domain name is the most memoizable part of a URL address. It is the name of the site. A domain name is used to communicate information about the website.

For example:

http://www.example.com

A domain can be further broken down to:

  • The Domain Name, such as example in example.com
  • The Top-Level Domain, such as .com in example.com

Each website has a unique domain. No two sites can have the same domain. The domain name acts as the unique address of a website.

Back in the day, the domain name was just an IP address, such as 241.152.131.208. But because this is hard to remember, a human-readable name is used instead.

But behind the scenes, the browser still uses an IP address to navigate to the website. This happens by using a DNS (Domain Name System). It translates a human-readable domain name to an IP address of the site. The browser uses this to look up the website using the IP address of the domain.

Now, let’s have a closer look at the Top-Level Domain part of the Domain.

Top-Level Domain (TLD)

The Top-Level Domain (TLD) is the “extension” in the domain name.

The most common TLDs are .com, .org, or .net.

Originally, the TLDs were used to express what the site is about. For example, a site with a TLD:

  • .com means the content is commercial.
  • .org refers to an organization site.
  • .edu refers to an educational site.
  • .gov refers to a government site.

These days the common TLDs, such as .com, .org, and .net can appear on any site without associations.

The TLDs can be split further into three categories:

  • gTLD for Generic Top-Level Domains. For example, .com, .org, or .net. The gTLDs are the most common TLDs. These are used by websites across the globe. Anyone can get one of the gTLDs.
  • sTLD for Sponsored Top-Level Domains. For example, .gov, .edu, .mil. Only verified sponsored organizations can use sTLDs.
  • ccTLD for County Code Top-Level Domains. For example, .us, .uk, .eu. These ccTLDs target a specific country. You can recognize a ccTLD from two letters. Only a ccTLD can have two letters. All the other TLDs have more than two letters.

In case you are interested, here is a full list of all the possible TLDs there are.

Fun fact: A commonly used TLD.iois actually a ccTLD. It refers to British Indian Ocean Territory.

But startups frequently use it even though they have nothing to do with the British Indian Ocean Territory

4. Port

The port of a URL is a “gate” via which the browser can access the resources on a server.

http://www.example.com:80

The reason why you don’t have to specify a port is that with HTTP protocols it is inserted automatically.

  • HTTP automatically uses port 80.
  • HTTPS automatically uses port 443.

But if the protocol is not HTTP or HTTPS, specifying the port is mandatory.

For example, if you use the FTP protocol to transfer files, you have to specify the port in the URL.

5. File Path

The URL path specifies from which directory you want to access files on a server.

But what files? A website is not a file, isn’t it?

When you use a URL to visit a website, you actually use a browser to get and show files from a remote server.

This server is no different than your local machine where your personal files live.

On your computer, you might have a file path like users/john/desktop/video.mp4.

On a web server, you could have a similar file structure.

https://www.example.com/users/john/music.mp3.

Notice that these days, the URL path does not usually reflect the file structure on the webserver. Instead, the URL path identifies the navigation structure of the site. Thus, it is not common to see real file paths in a URL anymore.

6. Query Parameters

In addition to accessing a URL with an URL address, you can specify a query into the URL.

This performs an action on the server where the requested resources live.

A URL query is started by adding a question mark after a URL.

For example, on Youtube, you can share a video such that it starts from a specific time.

This is possible thanks to the URL query.

For example, here is a video that starts at 11 seconds:

https://youtu.be/8qI8z-RGH44?t=11

Now take a look at the URL. At the end it says ?t=11. This is a simple query that the Youtube player uses to start the video at 11 seconds. Try to change the number to something else, e.g. 30.

Speaking of Youtube links, have you ever noticed that shareable Youtube links areyoutu.benotyoutube.com?

The.beis a ccTLD that belongs to Belgium.

But the Youtube URL has nothing to do with Belgium.

Youtube uses.beto make the shared links as short as possible. This makes them easier to fit in Tweets or other platforms with character limits. It’s a clever trick!

7. Fragment

Another optional part of a URL address is the fragment. This is also commonly referred to as a URL anchor.

The URL fragment starts with a hashtag (#) and is followed by a word or words.

The fragment leads to a secondary resource on a URL.

For example, here is a URL with an anchor to a specific part of a blog post.

https://www.example.com/blog/what-is-a-url#introduction

The fragment is commonly used to guide a user to a particular portion of a web page. When you click a URL with a fragment, the page scrolls to a specific part.

What Is a URL? (Beginner's Guide + Examples) - Logilax (4)

Amazing! Now you have a great understanding of what is a URL. From this point on, you are going to see URLs very differently.

Next, let’s take a closer look at HTTP and HTTPS protocols.

HTTP vs HTTPS

Back in the day, HTTP used to be the main protocol used when accessing websites.

However, these days, HTTPS has taken over.

Basically, HTTPS is a secure version of HTTP.

HTTPS uses SSL to encrypt the connection between the client and the server. Thus, it becomes harder for hackers to intercept the requests. Any website owner can change HTTP to HTTPS in a matter of minutes.

Thus, if you see a site that does not use HTTPS, chances are the site is not a quality page. When a website does not use HTTPS, you get a browser warning of an unsecured site.

What Is a URL? (Beginner's Guide + Examples) - Logilax (5)

If the website uses HTTPS, this problem is gone. Instead of a warning, there is a lock icon next to the URL.

What Is a URL? (Beginner's Guide + Examples) - Logilax (6)

Notice that the lock icon does not mean the site itself is safe to use. Instead, it means that the connection to the site is safe.

URL vs URI

This article has so far been all about URLs. But you may also have heard about URIs.

URI or Uniform Resource Identifier is the parent category of all URLs. A URI is a character sequence that separates one resource from another.

The subcategories of URI are:

  • URL (Uniform Resource Locator). For instance, https://www.example.com.
  • URN (Uniform Resource Number). For instance, urn:isbn:0-486-27557-4.
What Is a URL? (Beginner's Guide + Examples) - Logilax (7)

A real-life analogy to understanding the difference between URI and URL is as follows:

  • A person’s name is like a URI. It identifies the person without sharing their location.
  • A person’s address is like a URL. It identifies the physical location of a person.

URL Redirects

Anyone who has used the internet has faced a situation where a page auto-redirects to another page.

For example, if you type a URL and land on another URL, you were redirected.

Redirecting is a commonly used technique that diverts visitors from one URL to another. A domain owner can very easily set up a redirect to forward traffic to any page on the internet.

But why redirect a page?

A common example is when the URL changes. Imagine you have a web page that gets a ton of traffic but you have to change its URL. To not lose all the traffic, you can redirect the visitors accessing the old URL to the new URL.

As an example:

  • A website called example.com has a tutorial on how to create a song in example.com/song-tutorial-2022.
  • When the year changes to 2023, the URL is no more accurate. Thus, they decide to change the URL to example.com/song-tutorial-2023.
  • Now the problem is that anyone who tries to access example.com/song-tutorial-2022 will get an error.
  • To fix this, the example.com owner redirects traffic from example.com/song-tutorial-2022 to example.com/song-tutorial-2023.
  • If anyone tries to access the old page, they fly to the new page automatically.

Next, let’s talk about how URL shorteners work. Spoiler alert: They use redirects!

URL Shorteners: How Do They Work?

Have you ever seen a link like bit.ly/3kdd92jdkef that leads to some popular page, such as Amazon or Youtube?

This is an example of URL shortening.

It is a common technique that makes verbose and lengthy URLs shorter and more concise. For example, social platforms like Twitter have strict character limits. To place a link in a post, it has to be short.

But how does a URL shortener work?

A URL shortener works by redirecting traffic.

As you may recall, a domain can redirect traffic to any web page they like. A URL shortener is nothing but a regular domain dedicated to redirects.

Here is how it works:

  1. You have a URL shortening domain, like bitly.
  2. When you enter a URL to the tool, it creates a new bitly URL which redirects to the desired page.
  3. When your friend opens up the bitly URL, the redirect kicks in and leads to the right page.

URL FAQ

What Is WWW?

WWW stands for World Wide Web. It is the system that connects all public websites accessible through the internet.

All the websites that are publicly available belong to the WWW.

Note that the web is not the same thing as the internet. The web is just one of the applications built on top of the internet.

The worldwide web has three integral parts:

  1. The HTTP protocol enables data transfer between clients and servers. In other words, a browser can access websites with the HTTP protocol.
  2. Each website has a unique resource locator (URL) via which it can be accessed.
  3. HTML or Hypertext Markup Language is a file format for building web pages. One of the crucial components of the web is the ability to link resources through hyperlinks.

Why Some Sites Don’t Have WWW?

A regular website looks something like this:

https://www.example.com

But you may have noticed that some URLs look like this instead:

https://example.com

In this URL, the www part is missing.

But it’s unclear as to why it exists in a URL. Unlike many people think, www does not belong to the HTTP protocol.

Instead, www is an example of a subdomain.

For example, if there is a domain example.com, it could have the subdomains like:

  • app.example.com
  • mail.example.com
  • www.example.com

But the truth is you don’t actually need www in a URL. A website that does not use www works exactly like one that uses. A domain owner can easily get rid of www if they want to.

The only reasons why a website might still use www are:

  • The domain host wants to host many services under the same domain (for example, app, mail, blog). In this case, keeping the main website under the www subdomain is consistent to make it live on the same level as the other services. (app.example.com, mail.example.com, blog.example.com, www.example.com)
  • Using www has become a convention over time.

How Much Does a Domain Cost?

A domain generally costs $10 – $20 a year.

The price depends on the domain name registrar and the type of domain.

But as you can see, it is really not expensive.

For instance, if you want to purchase a domain for yourself, I suggest doing firstname + lastname + the TLD. For example bobjones.com.

This is great if you decide to build a portfolio, website, or blog one day.

A great place to buy a domain is from BlueHost.

What Is URL Phishing?

URL phishing is a common technique to lure a person to enter their credentials to a legitimate-looking scamming site.

Commonly, phishing is done via email.

The phisher sends a legitimate-looking message with a URL to a malicious site.

The problem is that it is hard to identify whether the site is a phishing site or not.

If you get suspicious email:

  1. Ignore the Display Name. The email display can show anything the sender wants it to. Instead of trusting the display name, look at the email address. This way you can ensure it really comes from a trusted domain.
  2. Verify the Domain. Phishing URLs are usually slightly misspelled. When a recipient quickly looks at the URL, they cannot tell it apart from a legitimate site. For example, examplesite.com may be replaced with something like examplessite.com. If the URL is misspelled, it is a good indication that the site is a phishing site.
  3. Check the Link. The best way to avoid being phished is not to click any link in an email. Instead, you should navigate to the site using Google. However, if you cannot avoid clicking, you should first check if the link is legitimate. For example, you can enter a suspicious link to a tool like phishtank.com to verify the link.

What Is a URL Slug?

A URL slug is the part of the URL after the last backslash.

For example, it can come right after the domain name, or it can come after the file path.

Here are some examples of URL slugs in bold:

  • https://www.example.com/what-is-a-url
  • https://www.example.com/blog/2022/10/07/what-is-http

What Is a URL Blacklist?

A URL blacklist is a list of unsafe URLs, IP Addresses, and domain names. These domains are removed from the search by the authorities.

Web users cannot access blacklisted URLs, not even by accident.

Summary

Today you learned how a URL works.

A URL or Uniform Resource Locator is a unique address that leads to resources over the internet.

Every website on the internet has a unique URL via which it can be accessed.

To open a webpage:

  1. You enter a URL address to the browser URL bar.
  2. The browser uses the address to request the files that make up the site.

URLs come in many shapes and forms. Some URLs are verbose and long whereas others are short and concise.

After all any URL consists of these 7 parts:

  1. Domain
  2. Subdomain
  3. Domain Name
  4. Port
  5. File Path
  6. Query Parameters
  7. Fragment

Thanks for reading!

What Is a URL? (Beginner's Guide + Examples) - Logilax (2024)

FAQs

What is a URL with an example? ›

URL is an acronym for Uniform Resource Locator and is a reference (an address) to a resource on the Internet. A URL has two main components: Protocol identifier: For the URL http://example.com , the protocol identifier is http . Resource name: For the URL http://example.com , the resource name is example.com .

What does a URL look like? ›

Most web browsers display the URL of a web page above the page in an address bar. A typical URL could have the form http://www.example.com/index.html , which indicates a protocol ( http ), a hostname ( www.example.com ), and a file name ( index.html ).

What is my URL? ›

The website's URL is in the address bar, which is usually at the top of your web browser window. This bar may be at the bottom of the window in Chrome on some Androids. Copy the URL. If you want to paste the URL into a message, post, or another app, you can copy and paste it from the address bar.

What are the 4 parts of a URL? ›

Components of a URL

The four main components of URLs are the protocol, domain, path, and query.

What does URL mean? ›

A URL (Uniform Resource Locator) is a unique identifier used to locate a resource on the Internet. It is also referred to as a web address. URLs consist of multiple parts -- including a protocol and domain name -- that tell a web browser how and where to retrieve a resource.

What is an example of a business URL? ›

An example URL with a fragment might look something like this: https://www.yourbusiness.com/about#founder. In this case, the browser will load the "about" page of your website and automatically scroll down to the founder section, which might highlight information about the company's founder.

What is the best example of URL? ›

An example of a URL is https://www.apple.com. This URL does not contain more parts than the authority and the scheme, which generally means it points to a website's homepage.

How do you enter a URL? ›

To correctly type a URL in the address bar, start with the protocol (usually http:// or https://), followed by “www,” if applicable. Then, enter the domain name ending with a top-level domain like .com or . org.

Is A URL the same as a web address? ›

The web address contains information about the location of the webpage. It is also known as the URL (uniform resource locator). Like the address for your home, a web address organizes information about a webpage's location in a predictable way.

How do I open my URL? ›

Answer: To open a URL, type it into your web browser's address bar and press Enter.

What is your personal URL? ›

How Personal URLs Work. A URL (uniform resource locator) is a web address that people type into their browser to access your website (for example, www.fridgenearme.com). A personalized URL is simply a custom domain name that contains words or phrases from your brand's name.

What is www called in a URL? ›

WWW stands for World Wide Web, and it's used mostly as a prefix. However, it does indicate that a given website uses HTTP to communicate. The main difference between WWW and HTTP is that they refer to different concepts.

What is the beginning of a URL called? ›

The first part of the URL is the scheme, which indicates the protocol that the browser must use to request the resource (a protocol is a set method for exchanging or transferring data around a computer network). Usually for websites the protocol is HTTPS or HTTP (its unsecured version).

How do I break down a URL? ›

A URL consists of ten parts: the scheme, subdomain, top-level domain, second-level domain, subdirectory, parameter, port, path, query, and fragment. While a URL doesn't have to contain all of these parts at once, it will always have at least three of them.

What is an example of your URL? ›

A URL is a specific type of URI that not only identifies a resource, but also provides the means of locating it. For example, https://www.example.com/page.html is a URL that tells you the resource is the webpage located on example.com's server at /page. html. And uses the HTTPS protocol to access it.

How do I find my URL? ›

On your computer, go to google.com. Search for the page. At the top of your browser, click the address bar to select the entire URL.

Which three pieces of information are identified by a URL? ›

URLs typically consist of three pieces: The name of the protocol used to transfer the resource over the Web. The name of the machine hosting the resource. The name of the resource itself, given as a path.

What is the simple name for a URL? ›

Uniform Resource Locator (URL) is another name for a web address. URLs are made of letters, numbers and other symbols in a standard form.

What are the two types of websites? ›

There are two fundamental types of websites: static websites and dynamic websites. The core difference between the two lies in the notion of whether the webpages are pre-rendered and hosted on the server, or whether the webpages are generated on the server in real-time upon user's request.

Is Google a website or not? ›

Google Search consists of a series of localized websites. The largest of those, the google.com site, is the top most-visited website in the world.

How do I find my URL on my computer? ›

You can usually access your address bar by pressing the F6 key or typing Ctrl+L. Depending on your browser, you may also be able to click on the URL field in the top-left corner of your screen directly to open your address bar. Additionally, some browsers offer an icon that you can click to open the address bar.

What happens when you type a URL into your browser? ›

Here's what happens in more detail: The browser sends a request to the server using IP to establish a connection. The server receives the request and sends back a message acknowledging the request to establish a connection. This is the handshake process.

What is a simple URL? ›

Simple URLs is an integration that allows you to generate dynamic, personalized marketing images using URL parameters on demand by changing the query string of an image URL. You start with a URL base and construct the modifications with strings of data according to your template's layers.

How do you type a URL? ›

To correctly type a URL in the address bar, start with the protocol (usually http:// or https://), followed by “www,” if applicable. Then, enter the domain name ending with a top-level domain like .com or . org.

Top Articles
Latest Posts
Article information

Author: Barbera Armstrong

Last Updated:

Views: 5736

Rating: 4.9 / 5 (59 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Barbera Armstrong

Birthday: 1992-09-12

Address: Suite 993 99852 Daugherty Causeway, Ritchiehaven, VT 49630

Phone: +5026838435397

Job: National Engineer

Hobby: Listening to music, Board games, Photography, Ice skating, LARPing, Kite flying, Rugby

Introduction: My name is Barbera Armstrong, I am a lovely, delightful, cooperative, funny, enchanting, vivacious, tender person who loves writing and wants to share my knowledge and understanding with you.