Before you launch any website, you will need to work with web addresses daily. This article takes one hypothetical URL apart piece by piece so you can read and describe any address with confidence.
What a Domain Name Answers and What a Full URL Answers
Suppose you are preparing a small personal project and you want to give it a web address. Before you type anything into a browser, it helps to know what the different pieces of that address actually tell you. Consider this hypothetical string: https://example.org/notes/first-page?view=compact#intro. This address does not point to a real page; it exists only so we can take it apart and look at each piece. Even without a live site behind it, the string follows the same structural rules that every web address follows.
A domain name answers one specific question: which server should the browser contact? Domain names are a key part of the Internet infrastructure. They provide a human-readable address for any web server available on the Internet. In our example, the domain name is example.org. It tells the browser where to send its request, but it says nothing about which particular page or resource on that server you want.1
A full URL answers a broader question: which specific resource on that server should be retrieved, and under what conditions? A URL (Uniform Resource Locator) is the address of a unique resource on the internet. The same domain can host many different resources, and the URL distinguishes among them. So while the domain name gets you to the right building, the rest of the URL tells you which room to walk into and what to ask for once you arrive.2
Reading Each Part of the Example Address
Let us look at the example string again: https://example.org/notes/first-page?view=compact#intro. The first part, https, is the scheme. It indicates the protocol that the browser must use to request the resource. For most websites today, this will be HTTPS or its unsecured version HTTP.2
The next part, example.org, is the domain name, which sits inside what is called the authority section of the URL. The authority is separated from the scheme by the character pattern ://. In our example, the domain is the host that the browser will contact.2
After the domain comes the path: /notes/first-page. The path points to a resource on the web server. Following the path, the question mark introduces the query string: view=compact. Parameters are extra information provided to the web server, presented as key-value pairs. Finally, the hash symbol introduces the fragment: intro. An anchor represents a sort of bookmark inside the resource, giving the browser directions to show the content located at that bookmarked spot. So the question mark signals the start of query parameters, and the hash symbol signals the start of a fragment identifier.2
Same Host, Different Paths and Queries
Now keep the host part fixed at example.org and change only the path and query. Suppose you write https://example.org/gallery/photos?sort=date instead. The domain has not changed, so the browser would still contact the same server. What changed is the path and the query string. The path now points to a different location in the address string, and the query now carries a different key-value pair.
If you remove the query entirely and write https://example.org/gallery/photos, the string becomes shorter but still follows the same pattern: scheme, domain, path. The absence of a question mark simply means no query parameters are included. If you also drop the fragment, nothing after a hash symbol appears, and the browser has no bookmark to scroll to. Each optional part adds information; removing it does not break the structure.
Notice that comparing these strings tells you only what is different in the text. It does not tell you what the server will actually return for each address. Two paths might lead to the same content, or one might return an error. The string is a request; the response depends on how the server is configured. For the purpose of understanding addresses before launch, reading the string accurately is the skill that matters.
Building an Address Description Card
Write down a short card for your hypothetical project that records the purpose of the address, the full string, and each identified part. For our example, the purpose might be: a reading view of the first page in a notes section. The full address is https://example.org/notes/first-page?view=compact#intro. The scheme is https. The domain is example.org. The path is /notes/first-page. The query is view=compact. The fragment is intro.
Record the role of each part in one phrase next to its value. For instance, next to the path you might write “locates the resource on the server,” and next to the query you might write “passes extra instructions to the server.” These short labels help you recall what each piece does without re-reading a reference article every time.
Keep the card brief. One line per part is enough. The goal is not to produce documentation for someone else but to create a quick reference that you can glance at while you are writing content, setting up links, or explaining your project to a collaborator.
Verifying the Card by Hand
Check your card by copying the full address into a plain text editor and marking each boundary with a space or a comment. For example, you might write: https :// example.org /notes/first-page ?view=compact #intro. Seeing the separators isolated makes it easier to confirm that you have identified each part correctly.
Use the question mark and the hash symbol as your primary landmarks. Everything between the domain and the question mark belongs to the path. Everything between the question mark and the hash symbol belongs to the query. Everything after the hash symbol is the fragment. If your card assigns a value to the wrong section, this quick scan will reveal the mistake.
Repeat this check whenever you add a new address to your project. The habit takes only a moment, and it catches common errors such as placing a query parameter after the hash symbol or forgetting the leading slash in a path.
Keeping Your Description for Future Use
Store the card somewhere you will actually look at it: a notes file, a project readme, or a bookmarked document. The format matters less than accessibility. If you have to search through folders to find it, you are unlikely to use it.
When you later write content that links to pages on your site, refer back to the card to confirm that the path and any query parameters match what you intended. This is especially useful when you have several similar pages and the difference is a single query value.
Over time you may accumulate several cards for different addresses in your project. That is fine. Each card serves the same purpose: a quick, human-readable summary of what a particular address string means and what each part contributes. You can expand, simplify, or reorganize them as your project grows.
Frequently asked questions
Is the fragment part of the URL sent to the server?
No. The part after the hash symbol, also known as the fragment identifier, is never sent to the server with the request. It is used by the browser to scroll to a specific spot within the already-loaded resource.2
Can a domain name exist without a path or query in the URL?
Yes. A URL like https://example.org contains only a scheme and a domain. The path, query, and fragment are all optional parts. The browser will request the default resource at the root of that domain.2
Does changing the query string always change what the server returns?
Not necessarily. The query string is a request for extra processing, but each web server has its own rules regarding parameters. Two different query strings might return the same content, or one might be ignored entirely. Reading the string tells you what is being asked, not what will be delivered.2
What is a Domain Name? - Learn web development | MDN. Retrieved 2026-11-01. ↩︎
What is a URL? - Learn web development | MDN. Retrieved 2026-11-01. ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎