Laptop on a desk displaying a website in a browser

What Is a URL? Parts, Examples & How It Works

A URL is the address of a page, image, file, or other resource on the internet — the text you type into your browser’s address bar to go somewhere online. Every page you have ever opened had one, whether you noticed it or not. Learn to read a URL and you can tell where a link really leads, what page you are on, and whether a link looks safe before you click it.

What Does URL Stand For?

URL stands for Uniform Resource Locator. The name sounds technical, but each word earns its place. “Uniform” means every URL follows the same format, whichever website it points to. “Resource” is whatever you are trying to reach — a page, a video, a PDF, a photo, or a download. “Locator” means the URL tells your browser where that resource lives and how to get it.

In everyday talk, people often call a URL a “web address” or just a “link.” Strictly, a link is the clickable text or button; the URL is the address underneath it. Hover over a link on a desktop browser and the destination appears in the corner of the window — a handy way to check where you are about to go.

The Parts of a URL, Explained

The easiest way to understand what a URL is, is to take a real one apart. Here is an example:

https://shop.example.com/products/shoes?color=blue&size=10#reviews

That single line contains eight distinct parts, each doing a different job.

1. Protocol

The https:// at the start is the protocol — the rules your browser uses to talk to the website’s server. The two you will see most are HTTP and HTTPS. HTTPS is the secure version: the connection is encrypted, so information traveling between your browser and the site is scrambled for anyone snooping in between. The :// is simply a separator.

2. Subdomain

The shop in our example is a subdomain. Sitting in front of the main domain name, it lets a site organize sections under labels such as www, blog, mail, and support. It is optional, and it does not change who owns the site.

3. Domain Name

The example.com part contains the domain name, the human-readable name of the website. Domain names exist because the internet runs on numerical IP addresses, which are hard to remember; a domain is the memorable label for one of them.

4. Top-Level Domain (TLD)

The .com at the end of the domain name is the top-level domain, or TLD. Familiar examples include .org, .net, .edu, and .gov, along with country codes such as .uk, .ca, and .au, and newer options like .io and .shop. The TLD can hint at a site’s type or location, but proves nothing — almost anyone can register a .com.

5. Port

You rarely see a port, because browsers hide it when a site uses the standard one. It would appear as a number after a colon, like :443 right after the domain name, telling the server which “door” the request should enter through. Standard web traffic uses port 80 for HTTP and 443 for HTTPS, so your browser picks the right one automatically.

6. Path

The /products/shoes part is the path. It works much like folders on your computer, pointing to a specific page or resource within the site. A path of just / means the homepage; longer paths take you deeper — a category, then a specific product, article, or file.

7. Query Parameters

Everything after the question mark — ?color=blue&size=10 — is the query string. It passes extra information to the page as name-and-value pairs joined by & symbols. Here, the page is told to show shoes in blue, size 10. Search results, filters, and sorted lists all rely on query parameters, and long ones often track where a visitor clicked from.

8. Fragment

The #reviews at the very end is a fragment, sometimes called an anchor. It points to a spot within the page — a heading, a comment area, or the reviews block here. The fragment is handled entirely by your browser and never sent to the server: the page loads, then scrolls you to that section.

URL vs. URI vs. URN: What’s the Difference?

You may also run into two cousins of the URL: URI and URN.

TermStands forWhat it doesExample
URLUniform Resource LocatorTells you where a resource is and how to access ithttps://example.com/about
URIUniform Resource IdentifierThe umbrella term for any string that identifies a resourceAll URLs and URNs are URIs
URNUniform Resource NameNames a resource without saying where it livesurn:isbn:9780134685991

The simple way to remember it: every URL is a URI, but not every URI is a URL. A URL is like a street address — it gets you to the door. A URN is more like a book’s title and edition — it identifies something precisely without directing you anywhere. In daily browsing, the term you actually need is URL.

How a URL Works in Your Browser, Step by Step

Typing an address and watching a page appear feels instant, but several things happen in between:

  1. You enter or click the URL. Your browser reads the protocol first, which tells it how to make the request.
  2. The browser finds the server. It looks up the domain name in the Domain Name System (DNS) — the internet’s phone book — to translate it into an IP address.
  3. A connection opens. The browser connects to the server at that address on the correct port. For HTTPS, encryption is set up before anything else is exchanged.
  4. The browser asks for the page. It requests the path in the URL, along with any query parameters.
  5. The server responds. It sends back the page’s content — text, images, code, or a file to download.
  6. The page renders. Your browser assembles everything on screen. If the URL had a fragment, it scrolls to that section last.

Absolute vs. Relative URLs

Not every URL you encounter includes the full address. There are two forms:

  • Absolute URL: the complete address, including protocol and domain — https://example.com/blog/post. These are what you share, bookmark, and paste into the address bar.
  • Relative URL: only the part that changes, such as /blog/post. It works only inside a website, where the browser already knows the site and fills in the rest.

URL Shorteners: Why Links Sometimes Look Tiny

Services known as URL shorteners replace a long address with a short one that redirects to the original. Short links are easier to paste into messages, print on packaging, and fit where space is tight.

The trade-off is transparency: a shortened link hides where you will end up. That is convenient when someone you trust shares one, but it is also why shorteners get misused. If a short link arrives in an unexpected message, use the service’s preview feature if it has one — or skip the link and navigate to the site yourself.

How to Tell if a URL Is Safe to Click

A URL cannot guarantee a page is honest, but it can warn you. A few checks take seconds:

  • Read the domain, not the whole line. The real domain is the part immediately before the first single / after ://. In https://example.com.secure-login.net, the actual domain is secure-login.net — the familiar name is just a subdomain used as decoration.
  • Watch for look-alike spelling. Scammers register domains with swapped or extra letters, or characters that look similar at a glance. One wrong letter means a completely different website.
  • Prefer HTTPS — but don’t stop there. The padlock means the connection is encrypted. It does not mean the site itself is trustworthy; a fake site can use encryption too.
  • Be suspicious of urgency. Messages pushing you to click immediately to “verify” or “unlock” something are a classic scam pattern. Real organizations rarely mind if you visit their site directly instead.
  • Hover before you click. On a computer, hovering reveals the true destination in the corner of the browser; on a phone, press and hold the link to preview it.

When in doubt, the safest route is boring: type the address you know into your browser yourself, rather than following a link someone sent you.

Small Details That Confuse Beginners

Can a URL contain spaces? No. Spaces are not allowed, so browsers replace them with %20 (or a + in query strings). Those percent signs in long addresses are simply encoded characters.

Does capitalization matter? In the domain name, no — capitals work fine. But paths and query strings can be case-sensitive, so /About and /about may be the same page, or two different ones.

Why do some addresses start with www and others don’t? The www is just a traditional subdomain. Most sites accept both forms and redirect one to the other, which is why the address in your bar may change slightly after a page loads.

FAQs

What is a URL in simple words?

A URL is the full address of something on the internet. Just as a home address tells a delivery driver where to go, a URL tells your browser which server to contact and which page or file to ask for.

Is a URL the same as a website address?

Almost — the two phrases are used interchangeably in everyday talk. Strictly, a URL is the complete address of one specific page or file, while a website is the whole collection of pages under a domain.

What is the difference between a URL and a domain name?

The domain name is one part of the URL — the site’s name, such as example.com. The full URL adds the protocol in front, and can add a path, query parameters, and a fragment after it to point at one exact page.

Can two pages have the same URL?

No. A URL identifies one specific resource. If a site changes what appears at an address, the URL stays the same but the content changes.

Why does a URL change after I click a link?

Usually because the site redirected you — from the version without www to the version with it, from HTTP to HTTPS, or from an old address to a new one. Short links do the same, landing you on the long original URL.

Similar Posts

Leave a Reply

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