When you are preparing your first website, the address you will share with visitors can feel confusing because several terms are used almost interchangeably. This article uses one clearly marked hypothetical address to show what each part means and how to keep a simple record for your own project.
What a Domain Name and a Full URL Each Tell You
Suppose you are planning a small personal project site where you will publish reading notes. You have heard people talk about "getting a domain" and "setting up a URL," and you are not sure whether these are the same thing. A useful way to sort this out is to look at one complete address and ask what each piece communicates. For this exercise we will use the hypothetical address https://example.org/notes/first-page?view=compact#intro. This address is invented purely for explanation; it does not point to a real page that exists or is live anywhere.
A domain name answers the question: which server or site are you trying to reach? Domain names provide a human-readable address for any web server available on the Internet, because computers use numeric IP addresses that are difficult for people to remember and that may change over time. In our example the domain name portion is example.org. It identifies the general destination without specifying any particular page or resource on that destination.12
A full URL answers a more detailed question: exactly which resource on that server, accessed by which method, and with what additional instructions? A URL is the address of a unique resource on the internet, and it is composed of different parts, some mandatory and others optional. Our example URL includes not only the domain but also a protocol indicator, a path to a specific page, a query string, and a fragment identifier. Together these pieces tell a browser everything it needs to locate and display one particular piece of content.3
Reading the Parts of Our Example Address
Let us mark each component of https://example.org/notes/first-page?view=compact#intro one by one. The first segment, https, is the scheme. It indicates the protocol the browser must use to request the resource; for websites this is usually HTTPS or its unsecured version HTTP. The scheme is separated from the rest of the address by the character pattern ://.3
Next comes the authority section, which in our case is simply example.org. This is the domain name, and it indicates which web server is being requested. The domain name itself has internal structure: the labels are separated by dots and read from right to left, with the rightmost part being the top-level domain. Here .org is the TLD, and example is the label that precedes it.13
After the domain comes the path: /notes/first-page. The path points to a specific resource on the web server. In the early days of the web a path like this represented a physical file location, but nowadays it is mostly an abstraction handled by web servers without any physical reality. Following the path, the question mark introduces the query string: view=compact. Query parameters are extra key-value pairs provided to the web server, and the web server can use them to do additional processing before returning the resource. 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. The fragment identifier is never sent to the server with the request.3
Comparing Strings While Keeping the Host the Same
Now keep the host portion fixed at example.org and change only the path. Compare https://example.org/notes/first-page with https://example.org/notes/second-page and https://example.org/about. The scheme and domain are identical in all three, yet the path segment differs. Each path nominally points to a different resource or location on the same server. We are reading the string structure here, not making claims about what any particular server would actually return for these addresses.
Next, keep the path fixed and vary the query string. Compare ?view=compact with ?view=full and with no query at all. The question mark is what signals the start of the query section; without it, everything after the path is simply absent. Different query strings represent different sets of parameters being offered to the server. Again, we are observing how the string is composed rather than predicting server behavior, because each web server has its own rules regarding parameters.
Finally, notice the fragment. Changing #intro to #summary or removing the fragment entirely does not alter the request the browser sends to the server, since the fragment is handled locally by the browser after the resource loads. This distinction is worth remembering when you are sharing links: two URLs that differ only in their fragment point to the same server resource but may scroll the viewer to different positions within the page.
Making an Address Description Card for Your Project
Record a short description card for your own hypothetical project. For our reading-notes site the card might contain four fields: purpose, full address, host, and path with query. Purpose describes why the address exists in one plain sentence, such as "the landing page for my reading-notes collection." The full address field holds the complete URL string exactly as you intend to share it. The host field isolates the domain name portion. The path and query field lists everything after the domain, so you can see at a glance which parts are content-specific and which are shared across your site.
This card is a personal organizational tool, not a technical requirement. Its value comes from forcing you to think about each part separately before you start building or sharing links. If you later add more pages, you can add rows to the same card, keeping the host field identical while the path and query fields change. Over time the card becomes a quick reference for anyone helping you with the project.
Write the card in a plain text file or a simple note rather than burying it inside a complex tool. The goal is to have one place where you can glance at the structure of your address without opening a browser or logging into any service. If you decide to change the path or add a query parameter later, you can update the card first and then make the corresponding change in your site files, reducing the chance of a mismatch.
Verifying Your Card by Hand
Check your description card against the actual address string using a simple manual method. Copy the full URL into a blank line of text. Then, working left to right, place a vertical bar at each boundary where one component ends and the next begins: after the scheme, after the double slashes, after the domain, after the path, before the question mark, and before the hash. Label each segment above the bar. If any label does not match what your card says, you have found a discrepancy to correct.
Use a second pass to confirm the separators themselves. The colon-slash-slash pattern must appear exactly once, between the scheme and the authority. The question mark must appear at most once, and the hash must appear at most once and only after any query. If you find two question marks or a hash before the question mark, the string is not structured the way you intended.
Repeat this check whenever you edit the address or create a new page on the same host. The exercise takes only a minute, and it builds the habit of reading addresses as structured strings rather than opaque sequences of characters.
Step 1
Copy the full URL from your description card into a new blank line.
Step 2
Insert a vertical bar at each component boundary: after the scheme, after ://, after the domain, after the path, before ?, and before #.
Step 3
Write the component name above each segment and compare it to the corresponding field on your card.
Step 4
Confirm that :// appears once, ? appears at most once, and # appears at most once and only after any query.
Keeping Your Record for Future Reference
Store the completed card somewhere you will naturally revisit when you work on the site: a project folder, a pinned note, or a dedicated section of your planning document. The exact location matters less than consistency. When you return after a break, having the card means you can quickly remind yourself which path corresponds to which page and which query parameters you chose, without having to re-derive the structure from memory.
If you collaborate with another person, sharing the card gives them the same structural understanding you built during the exercise. They can see at a glance that the host is shared, that paths distinguish pages, and that query parameters carry optional instructions. This reduces back-and-forth questions and makes it easier to spot when someone accidentally changes a path or omits a query string.
Over time you may find that the card evolves. You might add a column for the date you last updated each address, or a short note explaining why a particular query parameter exists. These additions are your own choices; there is no single correct format. The important habit is treating your web address as a structured object you can inspect and document, rather than a string you copy and paste without thinking.
Frequently asked questions
Is a domain name the same thing as a URL?
No. A domain name identifies the server or site you want to reach, while a full URL also specifies the protocol, the exact path to a resource, and optionally a query string and fragment. The domain name is one component within a URL.13
Does the fragment part of a URL get sent to the server?
No. The fragment identifier, which comes after the hash symbol, is never sent to the server with the request. The browser uses it locally to scroll to a bookmarked position within the already-loaded resource.3
Do I need to understand every URL rule before launching a simple site?
No. The core parts you will work with most often are the scheme, domain, and path. Query strings and fragments become relevant as your site grows, but you can start with the basics and add complexity later.
What is a Domain Name? - Learn web development | MDN. Retrieved 2026-11-01. ↩︎ ↩︎ ↩︎
How does the Internet work? - Learn web development | MDN. Retrieved 2026-11-01. ↩︎
What is a URL? - Learn web development | MDN. Retrieved 2026-11-01. ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎