Before you publish your first website, you will encounter two related but distinct concepts: the domain name and the full URL. This article uses a single hypothetical address to show how each piece fits together and why keeping a short written record can save confusion later.
What Question Does Each Part Answer?
Suppose you are planning a small personal project and you sketch out the address https://example.org/notes/first-page?view=compact#intro on a notepad. This string is entirely hypothetical; no such page is claimed to exist or be live anywhere. The point of writing it down is to have a concrete string you can pull apart piece by piece, rather than trying to memorize abstract definitions.
A domain name answers the question “which server am I trying to reach?” Domain names are a key part of the Internet infrastructure because they provide a human-readable address for any web server available on the Internet. Computers communicate through numeric IP addresses, but people find those numbers hard to remember, so domain names serve as the memorable label that stands in for the underlying number.1
A full URL answers a broader question: “which specific resource on that server do I want, and how should I ask for it?” A URL is the address of a unique resource on the internet and is one of the key mechanisms used by browsers to retrieve published resources such as HTML pages, CSS documents, and images. In other words, the domain name is one component inside a URL, but the URL can carry additional instructions about the exact page, format, or position within that page.2
Labeling Every Part of the Example Address
Take the hypothetical string https://example.org/notes/first-page?view=compact#intro and read it from left to right. The scheme is https, which tells the browser to use the secure HTTP protocol when requesting the resource. The authority section follows the :// separator and here consists of example.org, which is the domain name identifying the target server. The path is /notes/first-page, which points to a specific resource on that server. The question mark introduces the query string view=compact, a key-value pair that gives the server extra parameters. The hash symbol introduces the fragment intro, which acts as a bookmark position within the returned document.2
Two punctuation marks deserve special attention because they are easy to confuse. The question mark always signals the start of the query string, and everything between the question mark and the next hash (or the end of the string) belongs to the query. The hash symbol always signals the start of the fragment identifier, and the fragment is never sent to the server with the request; it only tells the browser where to scroll within the document it already received.2
In the domain portion itself, example.org follows the structure described for domain names: parts separated by dots and read from right to left. The rightmost part, org, is the top-level domain (TLD), which gives a general clue about the purpose of the service. The label to its left, example, is the second-level domain. Together they form the fully qualified domain name that a browser uses to locate the correct server.13
Same Host, Different Paths and Queries
Now keep the host portion example.org fixed and imagine two variations. The first is https://example.org/notes/second-page?view=full and the second is https://example.org/gallery/thumbnails?sort=date. In both cases the browser will contact the same server identified by example.org, but the path and query differ. The first variation asks for a different page under the notes directory and requests a full view instead of a compact one. The second variation moves to an entirely different directory called gallery and passes a sort parameter instead of a view parameter.
This comparison highlights a practical point: changing the path or query produces a different URL even though the domain name stays the same. Each distinct combination of path and query can point to a different resource on the server. You do not need to infer what the server will actually do with those parameters; the string itself is enough to see that these are three separate addresses.
Write down two or three variations of your own project’s address on paper, changing only the path or query while leaving the host untouched. This simple exercise makes it clear which part of the address controls which level of specificity. It also helps you notice whether your planned page structure uses consistent naming, which will matter later when you share links with others.
Building an Address Description Card
Record a short description card for your hypothetical project. The card needs only four lines: the purpose of the page, the full URL string, a list of each labeled part, and a one-sentence note about why you chose that structure. For the example used here, the purpose might be “a compact reading view of my first note,” the full URL is the string we have been examining, the parts are scheme, host, path, query, and fragment, and the note explains that the fragment points to an introduction heading.
The value of this card is not in its format but in the act of writing each part separately. When you spell out the path, the query key, and the fragment name as individual items, you create a reference you can check against your actual site later. If you change the page name or add a new parameter, you can compare the live address against the card and spot mismatches quickly.
Choose whatever format is easiest for you to maintain: a plain text file, a row in a spreadsheet, or a sticky note in a notebook. The important decision is to keep all four lines together in one place rather than scattering the information across different notes. A single card per page or per section of your site is usually enough for a small project.
Verifying the Card by Hand
Check your description card by copying the full URL from your browser’s address bar and pasting it into a blank line. Then go character by character through the pasted string and mark where each part begins and ends. Place a small slash or bracket before the scheme, after the host, before the query, and before the fragment. This manual marking step catches typos that are invisible when you read the address at normal speed.
Compare your marked string against the card you wrote earlier. If the path on the card says /notes/first-page but the pasted address shows /notes/firstpage, you have found a discrepancy worth fixing before you share the link with anyone else. The same applies to query keys: view=compact and view=compct look almost identical at a glance but will behave differently if typed into a browser.
Repeat this check each time you rename a page, add a parameter, or move a section of your site. The process takes only a minute per address, and it builds a habit of treating URLs as precise strings rather than approximate labels. Over time you will find that most addressing errors on small sites come from a single mistyped character, not from a conceptual misunderstanding of how URLs work.
Keeping Your Record for Future Use
Once your description cards are verified, store them somewhere you will actually look at them before writing content, sending a link, or updating a navigation menu. Many first-time site builders discover that they cannot remember whether a page lives at /notes/first-page or /note/first-page once a few weeks have passed. A saved card removes that guesswork entirely.
You can also use the cards when communicating with collaborators or when asking for help in a forum. Pasting the full URL together with your labeled parts gives the person helping you exactly the information they need without a long back-and-forth. This is especially useful if your question involves a redirect, a broken link, or a parameter that does not seem to work as expected.
There is no single correct way to organize these records. Some people keep one card per page; others group cards by site section. The only requirement is that each card contains the full address and the labeled parts so that you or anyone else can reconstruct the URL from the card alone. Treat the collection as a living document and update it whenever your site structure changes.
Frequently asked questions
Is a domain name the same thing as a URL?
No. A domain name identifies the server you want to reach, while a URL is the complete address that can also include a scheme, path, query string, and fragment. The domain name is one part inside a full URL.12
Does the fragment part after the hash get sent to the server?
No. The fragment identifier, which is the part after the hash symbol, is never sent to the server with the request. It only tells the browser where to scroll within the document it has already received.2
Do I need to understand every possible URL format before launching my site?
No. For a typical first website you only need to recognize the scheme, domain, path, and optionally a query string. The exercise in this article covers those parts, and you can learn about less common formats later if your project requires them.
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. ↩︎ ↩︎ ↩︎ ↩︎ ↩︎
TLD - Glossary | MDN. Retrieved 2026-11-01. ↩︎