Read the address before you click. A web address tells you where a link goes, who runs the place it points to, and what the server will be asked for, and it tells you all of that before a single byte moves. Most people skip the reading and trust the words around the link. The words can lie. The address cannot hide what it points to, once you know how to read it.
That address is a URL. One real address shows how it works: taken apart piece by piece, followed from the address bar to the server, timed on a live fetch, and closed with five checks for reading any link.
What a URL is
A URL is the address of a unique resource on the internet. The resource can be a page, an image, a file, a video, or a feed. The address is a line of text, and the browser reads it left to right. First come the rules for talking. Then the server to talk to. Then the thing to ask for. You see it in the address bar every time a page loads, and you copy it every time you share a link.
URL stands for Uniform Resource Locator. Some pages spell the expansion with Universal in place of Uniform, and one of the top results for this query does exactly that. The standard behind the term is RFC 3986, which defines the generic syntax, and the WHATWG URL Standard, which defines how browsers parse an address. Uniform is the word both use, and it matters: the address points at one specific resource.
The first address of this kind pointed at the World Wide Web project page at CERN, and that page still answers at its original address today. The same shape of address now points at billions of pages, and every one of them is found by those three parts: scheme, server, path.
The parts of a URL, read left to right
Take the address of the USB guide, which explains what USB is, with a tracking tag and a jump link added: https://valleyai.net/computer/what-is-a-usb/?ref=newsletter#frequently-asked-questions
| Part | Example | Who reads it |
| Scheme | https | The browser. It picks the protocol: https for an encrypted web page, http for a plain one, ftp for a file transfer, mailto for an email address. |
| Host | valleyai.net | DNS. It turns the name into an IP address, and how DNS turns a name into an address is the step that makes the rest possible. |
| Port | (empty, defaults to 443) | The browser. It fills in 443 for https and 80 for http, so you rarely see the number. The S marks the encrypted layer, and HTTP vs HTTPS explains the difference the letter makes. |
| Path | /computer/what-is-a-usb/ | The server. It names the page. On a site built with WordPress, the path maps to a database entry; no folder on the disk carries that name. |
| Query | ?ref=newsletter | The server’s application. It passes input as key=value pairs, such as a search term or a tracking tag. |
| Fragment | #frequently-asked-questions | The browser only. It names a spot inside the page, and it never travels to the server. |

Two details in that table do quiet work. The port is missing from most addresses you see, because the browser supplies the default and hides it. And the path on a WordPress site names no folder on a disk: the software maps the path to a database entry and builds the page from it. A path that looks like folders is a label for a route.
What happens when you press Enter
Six steps stand between pressing Enter and seeing a page. The browser parses the address, asks DNS for the server’s number, opens a connection, agrees on encryption, sends the request, and renders what comes back.
- Parse: the browser splits the address into its parts and checks the scheme.
- DNS lookup: the name valleyai.net becomes an IP address.
- TCP connect: the browser opens a connection to that address.
- TLS handshake: browser and server agree on encryption.
- HTTP request: the browser asks for the path, by name.
- Render: the browser reads the answer and paints the page.
The measurement here ran curl 8.5.0 against the USB article at valleyai.net/computer/what-is-a-usb/, with the address resolved through the system resolver first. It is a single run, and the DNS figure is a cached lookup: the resolver already held the answer, so a cold lookup takes longer. Timings vary by network and server load, and nothing here was timed on a mobile connection.
| Slice of the trip | Time, one run |
| DNS lookup (cached) | 0.0006 seconds |
| TCP connect | 0.0002 seconds |
| TLS handshake | 0.25 seconds |
| Server wait for the first byte | 1.52 seconds |
| Download of 159 KB | 0.68 seconds |
| Total | 2.45 seconds |

Most of the 2.45 seconds is the wait for the first byte. The first byte arrives 1.77 seconds after the start, and 1.52 of those seconds are the server’s own wait. The rest arrives in 0.68 seconds. The DNS lookup and the connection barely register next to that wait: the answer was cached, and the connection itself took under a millisecond.
Why does the browser ask DNS first instead of going straight to the address? Because the network delivers to numbers, and a name is not a number. The browser has nowhere to connect until DNS hands it 198.18.175.83, so the lookup runs first.
The request itself is one line: GET /computer/what-is-a-usb/ HTTP/1.1, plus a Host header naming valleyai.net. The fragment never leaves the machine. A verbose trace of the same address with #frequently-asked-questions attached shows the request line without it, and the server answers the page all the same. Every guide states that the fragment stays behind; the trace above proves it for one real address.
On Windows, open Command Prompt and type nslookup valleyai.net. The answer lists the same number, and it is the fastest way to check whether a name resolves at all. On Linux or macOS, dig valleyai.net gives the same answer. Either command runs the DNS step on its own, outside the browser.
Absolute and relative URLs
An absolute URL carries the full address, scheme and all, so it works anywhere: in a message, a feed, or another site. A relative URL carries only the part that changes, and the browser completes it against the page it sits on. Relative addresses keep a site portable when pages move together; absolute addresses travel on their own.
All seven forms below resolve against one base address, the USB article at https://valleyai.net/computer/what-is-a-usb/. The WHATWG URL Standard defines how a browser resolves each of these forms against the base, and the results are exact.
| Written as | Resolves to |
| https://valleyai.net/ai/what-is-ai/ | Itself. An absolute address needs no base. |
| /computer/what-is-a-crc-error/ | https://valleyai.net/computer/what-is-a-crc-error/ |
| what-is-a-crc-error/ | https://valleyai.net/computer/what-is-a-usb/what-is-a-crc-error/ |
| ../ai/what-is-ai/ | https://valleyai.net/computer/ai/what-is-ai/ |
| ../../ai/what-is-ai/ | https://valleyai.net/ai/what-is-ai/ |
| #frequently-asked-questions | https://valleyai.net/computer/what-is-a-usb/#frequently-asked-questions |
| //cdn.example.com/file.js | https://cdn.example.com/file.js (takes the page’s scheme) |
A relative link breaks the moment the page is copied somewhere else, because the base it leans on changes. The third row shows the trap: written against the USB article, what-is-a-crc-error/ lands inside the USB article’s own folder, one level deeper than intended. That is why feeds, emails, and shared links always carry absolute addresses.
What breaks a URL
Most broken links fail in one of four places, and each failure looks different in the browser.
- A mistyped host. The name does not resolve, so there is nowhere to connect, and the browser reports that it cannot find the server. The fix for a failed DNS lookup starts by checking the spelling.
- A moved or deleted page. The server answers 404. A request for https://valleyai.net/computer/this-page-does-not-exist-xyz/ returned 404, with no redirect offered.
- Plain http instead of https. The address http://valleyai.net/computer/what-is-a-usb/ answered 301, sending the browser to the encrypted address.
- Wrong case in the path. Servers usually treat the path as case-sensitive, so /Computer/ and /computer/ name different pages. A check run on valleyai.net found the exception, not the rule: https://valleyai.net/COMPUTER/what-is-a-usb/ returned the same article, with the canonical tag pointing at the lowercase address. WordPress forgives the case and points search engines at the lowercase form. I ran the check expecting a 404 and got the article instead. Do not count on that elsewhere: on most servers the uppercase path is a different page, and a page that does not exist is a 404.
Why does a link that worked yesterday show a 404 today? The page moved, was renamed, or was deleted, and the server kept no forwarding rule. Search the site for the title, or delete the last segment of the path and try the section page.
URL vs URI vs URN
URI is the wider term. It covers anything that identifies a resource, whether or not it says where to fetch it. A URL is the kind of URI that also gives the location. A URN is the kind that gives a name and no location at all.
| Term | Identifies | Locates | Example |
| URL | A resource | Yes | https://valleyai.net/computer/what-is-a-usb/ |
| URI | A resource | Sometimes | That address, which is also a URI |
| URN | A resource | No | urn:isbn:9780553212471 |
The rule to keep: every URL is a URI, but not every URI is a URL. A URN names a book by its ISBN and leaves the finding to a catalogue; a URL names a page and tells the browser exactly where to fetch it. An email address written as mailto:hello@example.com is a URI: it names a destination without saying where to fetch anything. In everyday talk, people call all of these URLs, and the distinction only matters in standards and in code.
Spaces and other languages in a URL
A URL carries only a small set of characters: letters, digits, and a few punctuation marks. Everything else is encoded before it travels. A space becomes %20, and a letter with an accent becomes two bytes written as two % codes.
Take café au lait as a search term. The é is one character, U+00E9, and UTF-8 stores it as two bytes, C3 A9. The address the browser sends reads caf%C3%A9%20au%20lait: %C3%A9 for the é, %20 for each space. Modern browsers show the decoded words in the address bar and send the encoded form underneath.

Domain names follow a separate rule. A name with an accent is converted to punycode before lookup: münchen.de becomes xn--mnchen-3ya.de, and the conversion runs before DNS ever sees the name.
Why does a space in a URL turn into %20? A space would end the address where the browser reads it, so the browser replaces it with the percent code for byte 20 in hexadecimal. The server decodes it back to a space on arrival.
Read the address before you click
A link’s text can say anything. The address is the part that cannot lie about its destination, and reading it takes seconds. Five checks cover most bad links, and the first one catches most of them.
- Read the host. The host is the part between :// and the next slash, and it names the server you will reach.
- Check the spelling letter by letter. A single-letter change in the domain points at a different server, and lookalike domains are the oldest trick in phishing.
- A padlock means the connection is encrypted. It says nothing about whether the site itself can be trusted: anyone can get a certificate, and scammers do.
- Hover over the link, or long-press it on a phone, and read the address that appears before you tap. The address that appears is the real destination, whatever the link text says.
- When a message claims urgency, skip the link and open the app or the site yourself. A real warning waits for you there, the way the cybersecurity guide recommends for any unexpected message.
On Windows, right-click a link and choose Copy link, then paste it into Notepad and read the full address before you open it. The paste shows the target the hover text sometimes hides.
The next link that arrives in a message gets thirty seconds: read the host, check the spelling, hover for the target. Most bad links fail the first check, and the ones that pass it are usually safe to open.
Frequently asked questions
How long can a URL be?
No fixed limit exists in the standard. In practice, keep an address under about 2,000 characters: older browsers and email clients cut longer ones, and most servers reject requests past roughly 8,000 characters. Long tracking strings are the usual reason an address grows past that.
Can a URL carry a password?
The form exists, written as username:password before the host, but browsers warn against it and many strip it out. Never type a password into an address, and never click a link that carries one. Sign in on the site’s own page instead.
Why do some links show a short address like bit.ly?
A shortener stores the long address on its own server and redirects anyone who opens the short form. The short form hides the destination, which is why it is useful in print and in messages, and why it needs a second look before you click: hover over it, or paste it into the shortener’s preview page first.
What happens if I delete the middle of a URL?
Deleting path segments walks up the site. Remove the last segment and the address usually lands on the section page; remove them all and it lands on the home page. It is a useful way to recover from a broken deep link when the page itself has moved.
Do search engines read the words in a URL?
Yes, as a small signal. Readable words in the path help people and search engines tell pages apart, and a clear path is easier to trust in a search result. Stuffing keywords into the path does not rank a page on its own.
Why does a URL sometimes end with a slash and sometimes not?
A trailing slash usually marks a directory or a section, while an address without one usually names a single page or file. Most servers treat both forms as one page and redirect one to the other, so the slash rarely changes what you see.

Kaleem
Kaleem is a Computer Science graduate (Virtual University of Pakistan) and the founder and editor of Valley AI, where he publishes in-depth, tested guides on computer hardware, artificial intelligence, and how the internet works. Every guide is researched from primary sources, tested hands-on where possible, and updated when the facts change.