Before a website goes live, you will encounter two closely related but distinct concepts: the domain name and the full URL. Knowing what each one tells you helps you describe your site accurately to collaborators, check your own work, and avoid confusion when sharing links. This article walks through a single hypothetical address step by step so you can see how the pieces fit together.

What Questions Do Domain Names and Full URLs Each Answer?

Suppose you are planning a small personal project site and you want to understand the address you will eventually share with readers. For this exercise, imagine the address https://example.org/notes/first-page?view=compact#intro . This is a hypothetical example used purely for breaking down the string; it does not represent a page that actually exists or has been published anywhere. Starting from a single concrete string makes it easier to see which part answers which question.

A domain name answers the question “which server am I reaching?” 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 locate servers by IP addresses, which are numeric and hard for people to remember, so domain names solve that readability problem. In our example, example.org is the domain name. It tells you the identity of the server that will handle the request, but nothing more specific than that.1

A full URL answers a narrower question: “which specific resource on that server am I requesting?” A URL is the address of a unique resource on the internet, and it is one of the key mechanisms used by browsers to retrieve published resources such as HTML pages, CSS documents, and images. Where the domain name points to the building, the URL points to a particular room, shelf, or even a specific paragraph inside a document on a shelf. The difference matters because two people might share the same domain name while intending to direct visitors to entirely different pages.2

Reading Each Part of the Example Address

Write out the full example string on a separate line so you can mark each segment: https://example.org/notes/first-page?view=compact#intro . The first segment, https, is the scheme. The scheme indicates the protocol that the browser must use to request the resource. For websites the protocol is usually HTTPS or HTTP. In our example, https tells the browser to use a secure connection when contacting the server.2

The next segment, example.org, is the domain name sitting inside what the URL specification calls the authority. The authority is separated from the scheme by the character pattern :// and indicates which web server is being requested. After the domain comes the path: /notes/first-page . The path represents the location of a resource on the web server. You can think of it like a street address within the building identified by the domain. The path always begins with a forward slash and uses additional slashes to separate levels.2

The question mark ? introduces the query portion. Everything between ? and the next delimiter belongs to the query string. In our example, view=compact is the query. Query parameters are extra key-value pairs provided to the web server, and the server can use them to do additional processing before returning the resource. The hash symbol # introduces the fragment, also called an anchor. In our example, intro is the fragment. An anchor represents a sort of bookmark inside the resource, giving the browser directions to show the content located at that bookmarked spot. A useful rule to remember: the question mark always leads the query, and the hash always leads the fragment.2

Comparing Different Paths and Queries on the Same Host

Keep the scheme and domain from our example unchanged and swap only the path. Compare https://example.org/notes/first-page?view=compact#intro with https://example.org/gallery/thumbnails?view=compact#intro . The domain portion is identical, so both addresses target the same server. What differs is the path: /notes/first-page versus /gallery/thumbnails . This tells you that the two URLs point to different resources on the same host, even though everything before the first slash after the domain is the same string.

Now change only the query string while keeping the path fixed. Compare https://example.org/notes/first-page?view=compact#intro with https://example.org/notes/first-page?view=full#intro . The path is the same, so the underlying resource being requested is the same page. The query differs: view=compact versus view=full . This means the server receives an instruction to present the same resource differently. You are not making a claim about how any particular server will actually respond; you are only observing that the strings carry different instructions.

Finally, change only the fragment. Compare https://example.org/notes/first-page?view=compact#intro with https://example.org/notes/first-page?view=compact#summary . The domain, path, and query are all identical. Only the fragment changes from intro to summary. This tells the browser to scroll to a different bookmark within the same document. The fragment is never sent to the server with the request, so changing it does not alter what the server returns; it only changes where the browser displays the content.

Creating an Address Description Card for Your Project

Record the purpose of the address in one plain sentence before you write anything else. For our hypothetical project, you might write: “This is the main reading page for my notes collection, shown in a compact layout, scrolled to the introduction section.” Stating the purpose first gives you a reference point for checking whether each part of the URL actually matches what you intend.

Next, write the full address on its own line exactly as you plan to share it. Below that line, list each part with a short label: scheme, domain, path, query, and fragment. For our example the card would look like this. Scheme: https. Domain: example.org. Path: /notes/first-page. Query: view=compact. Fragment: intro. Having all five items on separate lines makes it easy to spot a missing slash, a misspelled parameter name, or a fragment that no longer matches any heading in your document.

Use a consistent format every time you create a card so that future entries are comparable at a glance. You might choose to always list parts in the order they appear in the URL string, or you might prefer to group them by function. Either choice works as long as you apply it consistently. The card is your personal reference, not a formal specification, so the priority is clarity for yourself rather than adherence to any external standard.

Verifying the Card by Manual Copying and Item-by-Item Marking

Check your card against the original address string by copying the full URL into a plain text editor and then inserting a line break before each delimiter. Place a break after the :// that separates the scheme from the authority, after the domain where the first forward slash of the path begins, before the question mark, and before the hash. This gives you five visible segments that you can compare one by one against the entries on your card.

Write the expected value for each part on a separate line beneath the corresponding segment you just isolated. Then read the two lines side by side. If the segment in the URL reads example.org and your card says example.org, that entry checks out. If you find a mismatch, correct the card or the address, whichever contains the error. This manual comparison catches typos that are easy to overlook when you only glance at a long string in a browser bar.

Repeat the check after any edit to the address. Even small changes, such as adding a second query parameter or renaming a fragment identifier, can introduce a stray character. Making verification a habit means you catch issues while they are still easy to fix rather than discovering them after you have already shared the link with collaborators or embedded it in another document.

Keeping the Record for Future Writing and Communication

Store your address card somewhere you can reach it quickly when you draft new content or explain your site structure to someone else. A simple text file, a note in your project management tool, or even a comment at the top of a configuration file all work. The format matters less than the consistency of keeping it updated whenever the address changes.

When you share the address with a collaborator, consider including the card alongside the raw URL. The card tells them what each part is supposed to do, which reduces back-and-forth questions like “does the query parameter control the layout or the content?” You are providing context, not dictating how they must read the URL, but the extra annotation often saves time for everyone involved.

Decide for yourself how detailed your records need to be. Some project owners keep a card for every public URL their site exposes; others only document the handful of addresses they share most frequently. Neither approach is wrong. The key is that when you do record an address, the record is accurate and reflects the current state of the URL rather than an earlier draft you have since revised.

Frequently asked questions

Does changing the fragment in a URL change what the server returns?

No. The fragment, 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 already-loaded resource. Changing the fragment changes what the visitor sees on screen but does not alter the server's response.2

Can two different URLs share the same domain name?

Yes. The domain name identifies the server, while the path, query, and fragment specify which resource on that server is being requested. Any number of distinct URLs can point to different resources on the same domain.2

Do I need to include the scheme when I type a URL into a browser?

In practice, browsers fill in the scheme for you if you omit it, defaulting to HTTP. However, when you record or document a URL for your project, including the scheme explicitly avoids ambiguity and makes the address complete.2