what is a url? Definition, Parts, Types & Examples

Every page you visit, image you open, and file you access online has an address that helps your browser find it. That address is usually a URL.

If you have ever copied a web address from your browser, clicked a link in an email, or shared a webpage with someone, you have already used URLs—even if you never thought about how they work.

A URL, or Uniform Resource Locator, is the address used to identify and locate a specific resource on the internet. It tells a web browser both where a resource is located and, through its scheme or protocol, how it should be accessed. A URL can point to a webpage, image, video, PDF, CSS file, or another online resource.

What Does URL Stand For?

URL stands for Uniform Resource Locator.

The three words describe its purpose:

  • Uniform means URLs follow a standardized structure.
  • Resource refers to something that can be identified or accessed, such as a webpage, image, document, or file.
  • Locator means the address provides information needed to locate that resource.

For everyday use, the easiest way to understand a URL is to think of it as a web address.

For example:

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

This URL points to a particular page within the example.com website.

A domain such as example.com identifies the website or host, while a complete URL can identify a much more specific resource within it.

What is a URL example?

A simple URL might look like this:

https://www.example.com/products/shoes

In this example:

URL PartExamplePurpose
SchemehttpsTells the browser how to access the resource
SubdomainwwwIdentifies a subdivision of the domain
Domainexample.comIdentifies the website or host
Path/products/shoesIdentifies a particular location or resource

Real URLs can contain additional elements, including port numbers, query parameters, and fragments.

Quick Takeaway: A domain tells you which website or host you are dealing with. A URL can tell you the exact resource or location you want within that site.

What Are the Parts of a URL?

URLs can look complicated because several pieces of information may be packed into one address.

Consider this example:

https://shop.example.com:443/shoes/running?size=10&color=black#reviews

It can be broken into several components.

1. Scheme or protocol

The first part is:

https://

The scheme indicates how the resource should be accessed. For websites, the protocols people encounter most often are HTTP and HTTPS.

HTTP stands for Hypertext Transfer Protocol.

HTTPS is the secure form commonly used on the modern web. It protects data while it travels between the browser and server by using encryption.

You may also encounter schemes such as:

  • ftp: for certain file-transfer resources
  • mailto: for email links
  • tel: for telephone links

Technically, the broader URL and URI ecosystem supports more than ordinary HTTP and HTTPS webpages.

2. Subdomain

In:

shop.example.com

shop is the subdomain.

A subdomain can be used to organize distinct areas or services within a larger domain.

Common examples include:

blog.example.com

support.example.com

store.example.com

The familiar www is also commonly used as a subdomain.

3. Domain name

In:

https://www.example.com

the main domain is:

example.com

A domain name provides a human-readable way of identifying an internet host rather than requiring people to remember an IP address.

The Domain Name System, or DNS, helps translate domain names into IP addresses that computers use to find the appropriate server.

4. Top-level domain

The .com portion of example.com is the top-level domain, commonly abbreviated as TLD.

Other familiar TLDs include:

  • .org
  • .net
  • .edu
  • .gov
  • .uk
  • .pk

A complete domain may therefore contain a name plus a top-level domain, while some country-code domain structures contain additional levels.

5. Port

A URL can explicitly specify a network port:

https://example.com:8443/page

Here, 8443 is the port.

Ports help identify the service on a server that should receive a connection. In normal browsing, you rarely see a port because common protocols have standard defaults.

For example, HTTP traditionally uses port 80, while HTTPS commonly uses port 443.

6. Path

Consider:

https://example.com/blog/url-guide

The path is:

/blog/url-guide

A path identifies a particular resource or logical location on the host.

Paths were historically easy to think of as directories and files on a server. Modern websites, however, can generate pages dynamically, so a path does not necessarily correspond to a physical folder or file.

7. Query string and parameters

Some URLs contain a question mark followed by additional information:

https://example.com/search?q=shoes&size=10

Everything after ? in this example is part of the query.

The query contains parameters that a website or application can use to modify a request.

Here:

q=shoes

could represent a search for shoes, while:

size=10

could specify a selected shoe size.

Multiple parameters are commonly separated using an ampersand (&).

You often see query parameters in search results, ecommerce filters, analytics tracking, and dynamically generated pages.

8. Fragment or anchor

A URL may end with a hash symbol and a fragment:

https://example.com/guide#security

The fragment is:

#security

It can point the browser to a particular section or element within a document.

For example, a long article might use fragments to let readers jump directly to sections such as pricing, examples, specifications, or reviews.

MDN’s breakdown of URL anatomy similarly distinguishes the scheme, authority, path, parameters, and anchor or fragment as important parts of a URL.

How Does a URL Work?

Knowing what is a url becomes much easier when you understand what happens after you enter one into a browser.

Suppose you type:

https://example.com/articles/url

into your browser’s address bar.

A simplified version of the process looks like this:

  1. The browser interprets the URL. It separates components such as the scheme, hostname, path, and other parameters.
  2. The domain is resolved. DNS helps determine the IP address associated with the hostname.
  3. A connection is established. The browser connects to the appropriate server.
  4. The browser sends a request. For a typical webpage, this is an HTTP or HTTPS request for the specified resource.
  5. The web server processes the request. It determines what content should be returned.
  6. The server sends a response. That response may include HTML and references to other resources.
  7. The browser renders the page. It processes the returned content and displays the result on your screen.

This client-server interaction is one of the foundations of how the web works. Browsers act as clients requesting resources, while servers store or generate resources and return them to the client.

The process happens so quickly that it usually feels instantaneous.

URL vs. Domain Name: What Is the Difference?

A URL and domain name are not the same thing.

Consider:

https://www.example.com/blog/how-urls-work

The domain is:

example.com

The complete URL is:

https://www.example.com/blog/how-urls-work

The difference becomes clearer in a comparison:

Domain NameURL
Identifies a website or hostIdentifies or locates a specific resource
Example: example.comExample: https://example.com/blog/article
Only one component of many URLsCan contain scheme, host, path, query, fragment, and more
Less specificMore specific

Cloudflare describes URLs as more specific than domain names because a URL can identify an exact webpage or file rather than only the broader domain.

Think of a domain as the address of an apartment building and the full URL as directions to a particular apartment or location inside it.

URL vs. Link: Are They the Same?

People often use URL and link interchangeably, but technically they describe different things.

A URL is an address:

https://example.com/contact

A hyperlink is a clickable element that can point to that address.

For example, a webpage might display the words:

Contact Us

while the underlying hyperlink points to:

https://example.com/contact

You do not necessarily see the destination URL when looking at the clickable text.

This distinction matters for security because the visible text of a hyperlink does not guarantee that it points to the destination you expect.

What Is the Difference Between a URL and a URI?

Another term you may encounter is URI, or Uniform Resource Identifier.

A URI identifies a resource. A URL is a type of URI that provides information for locating or accessing a resource.

In practical web use, URL is the term most people encounter.

TermFull NameMain Purpose
URIUniform Resource IdentifierIdentifies a resource
URLUniform Resource LocatorIdentifies and locates/accesses a resource
URNUniform Resource NameIdentifies a resource by name within a naming scheme

A URL is therefore considered a subset of URIs: URLs are URIs, but not every URI necessarily functions as a URL.

For ordinary browsing, you usually do not need to worry about this technical distinction. It becomes more relevant in web development, networking, standards, and software documentation.

What Are the Different Types of URLs?

URLs can be classified in several ways, but one of the most useful distinctions is between absolute URLs and relative URLs.

Absolute URL

An absolute URL contains enough information to identify a resource independently.

Example:

https://example.com/images/logo.png

It includes the scheme, hostname, and path.

Absolute URLs are useful when linking to resources on another website or whenever a complete, standalone address is required.

Relative URL

A relative URL gives a location relative to another URL, usually the current document.

For example:

/images/logo.png

If you are already browsing https://example.com, the browser can resolve that relative path against the site’s base URL.

Relative URLs are widely used for internal website resources and navigation.

MDN distinguishes absolute URLs from relative URLs and explains that the meaning of a relative URL depends on the URL of the resource in which it appears.

Static and dynamic URLs

You may also hear URLs described as static or dynamic.

A simple-looking URL might be:

https://example.com/guides/url-basics

A URL with application parameters might look like:

https://example.com/products?category=shoes&size=10

The second is commonly described as dynamic because parameters may influence what content the server or application returns.

However, appearances can be misleading. Modern web applications can dynamically generate content at clean-looking paths, so you cannot always determine how a page is produced simply by looking at its URL.

What Makes a Good URL?

URLs are primarily technical addresses, but their structure also affects usability and website organization.

Compare these two examples:

https://example.com/blog/how-urls-work

and:

https://example.com/index.php?id=73928&cat=4

Both can technically work, but the first gives a human reader a much clearer idea of what to expect.

For public-facing webpages, useful URLs generally:

  • Use descriptive words where practical
  • Keep paths reasonably short
  • Use a logical site hierarchy
  • Avoid unnecessary parameters
  • Use consistent formatting
  • Prefer readable words over meaningless identifiers when appropriate
  • Avoid unnecessary complexity

These are sometimes called semantic URLs because their structure communicates meaning to people as well as machines. MDN recommends semantic URLs because readable addresses are easier for users to understand and manipulate.

Why URL structure matters for SEO

Search engines discover, crawl, and index webpages through URLs, so a clear URL structure can support website organization and make pages easier to understand.

A descriptive URL such as:

example.com/guides/website-security

provides more context than:

example.com/page?id=87293

That does not mean inserting large numbers of keywords into URLs will improve rankings. A concise, stable, descriptive path is generally more useful than a keyword-stuffed one.

For website owners, the practical goal is clarity—not trying to turn the URL into a list of search terms.

How Do You Find the URL of a Website or Page?

The simplest place to find a webpage URL is your browser’s address bar.

On a desktop browser:

  1. Open the webpage.
  2. Click the address bar.
  3. The current URL will appear.
  4. Select and copy it if you need to share it.

On a smartphone, browsers commonly provide a share or copy-link option.

Remember that different resources on the same website can have different URLs.

For example:

https://example.com

may represent the homepage, while:

https://example.com/about

and:

https://example.com/contact

identify different pages.

A single website can therefore have thousands—or even millions—of unique URLs.

Can a URL Point to Something Other Than a Webpage?

Yes.

A common misconception is that every URL represents a webpage. URLs can identify many types of resources.

Examples include:

  • HTML webpages
  • Images
  • PDF documents
  • CSS stylesheets
  • JavaScript files
  • Videos
  • Audio files
  • Downloadable documents
  • API endpoints
  • Dynamically generated resources

MDN specifically notes that URLs can identify resources such as HTML pages, CSS documents, and images.

For example:

https://example.com/images/photo.jpg

could point directly to an image.

Likewise:

https://example.com/files/report.pdf

could identify a PDF document.

Are All URLs Safe?

No. A URL is simply an addressing mechanism; having a valid-looking URL does not prove that a website is trustworthy.

This is particularly important when clicking links in emails, text messages, social media posts, advertisements, or unexpected messages.

A malicious URL can lead to a phishing page, malware, a fake login screen, or another deceptive destination.

Check the actual domain

Pay particular attention to the hostname and registered domain.

For example, imagine you expect to visit:

example.com

but receive a link such as:

example-login-security.attacker.com

The important domain in that hypothetical address is attacker.com, not the words example-login-security appearing before it.

Attackers may deliberately create misleading subdomains, paths, or visually similar domain names.

Does HTTPS mean a website is safe?

Not by itself.

HTTPS means the connection between your browser and the server is encrypted. That is valuable, but encryption does not prove that the organization operating the website is honest.

A phishing website can also use HTTPS.

Treat HTTPS as a connection-security feature, not a universal trust badge.

Before entering passwords, banking details, or other sensitive information, verify the domain itself and the context in which you received the link.

Can a URL Change or Stop Working?

Yes.

Although a valid URL is intended to identify a resource, the resource behind it can be moved, renamed, deleted, restricted, or replaced.

If a webpage is removed without an appropriate replacement, visiting its old URL may result in a 404 Not Found response.

Website owners can also configure redirects so that an old URL sends visitors to a new location.

For example:

example.com/old-guide

might redirect to:

example.com/new-guide

This is why URLs should ideally remain stable when possible. Frequently changing public URLs can break bookmarks, external links, internal links, and references from other websites.

Why Are Some URLs So Long?

A basic webpage can have a short URL, while search engines, online stores, analytics systems, and web applications may create much longer addresses.

For example:

https://example.com/search?q=laptop&brand=abc&sort=price&page=2

The extra information may tell the application:

  • What the user searched for
  • Which filters are active
  • How results should be sorted
  • Which page of results should be displayed

Marketing systems may also append tracking parameters to links.

That does not automatically make a long URL dangerous. What matters is understanding which domain the URL actually points to and why the additional parameters are present.

Do Spaces Work in URLs?

URLs follow specific syntax rules, so certain characters cannot simply appear in every part of an address exactly as typed.

Browsers and applications may percent-encode characters when necessary.

For example, a space can be represented as:

%20

So a filename such as:

my photo.jpg

could appear in a URL as:

my%20photo.jpg

Modern browsers often hide or simplify some encoding when displaying URLs, but encoded characters remain an important part of URL syntax.

The web platform’s URL rules are standardized, and browsers include built-in mechanisms for parsing, constructing, normalizing, and encoding URL strings.

Why URLs Matter on the Web

URLs do much more than give you something to type into an address bar.

They connect the web together.

A URL allows:

  • Browsers to request resources
  • Hyperlinks to connect one document to another
  • Search engines to discover and index pages
  • Users to bookmark content
  • People to share exact pages and files
  • Websites to load images, scripts, and stylesheets
  • Applications to communicate with web services
  • Servers to determine which resource has been requested

Together with technologies such as HTTP, HTTPS, DNS, HTML, web browsers, and web servers, URLs form part of the basic infrastructure people interact with every time they use the web.

what is a url? The Simple Answer

So, what is a url in the simplest possible terms?

A URL is the address of a resource on the internet. URL stands for Uniform Resource Locator, and a typical web URL combines a scheme such as HTTPS with a domain name and, when needed, a path, query parameters, port, or fragment that identifies a more specific resource.

When you enter a URL into a browser or click a hyperlink, the browser uses information in that address to locate the appropriate server and request the resource.

The easiest way to read an unfamiliar URL is from its major components: first identify the scheme, then the domain or hostname, followed by the path, query string, and fragment. Once you understand those pieces, even long web addresses become much easier to interpret—and much easier to evaluate before you click them.

A
Written & Reviewed By

Dr. Alexandra Reed

Reviews and publishes educational physics content focused on accuracy, conceptual clarity, and student learning. Specializes in physics fundamentals, formulas, equations, problem-solving methods, and academic study resources designed to support high school, college, and competitive exam learners.

Latest Physics Articles