How the web works: from URL to page
You type a URL, press Enter, and a page appears. Between those two moments, about six things happen, every single time. Here they are.
The journey of a URL
- You type a domain name. Computers don't understand names; they understand numbered addresses. So the first job is translation.
- DNS translates it. The Domain Name System looks up
parhodev.comand returns the server's IP address, something like142.250.190.78. Think of DNS as the web's phone book: names in, numbers out. - Your browser sends a request. Using HTTP (or its encrypted version, HTTPS), the browser asks the server at that address: "send me this page."
- The server responds. The server's software finds the file (or builds the page on the spot) and sends it back, along with a status code:
200means success,404means not found,500means the server itself broke. - The browser renders. It reads the HTML, applies the CSS, runs the JavaScript, and paints the page you see. The three tutorials before this one each covered one of those steps.
- Repeat, constantly. Every image, stylesheet, and font triggers its own request. A "single" page load is usually dozens of requests.
The Internet is not the Web
People use the words interchangeably, but they are different things. The Internet is the infrastructure: the physical and technical network connecting billions of computers. The Web is a service built on top of it: pages, browsers, and HTTP. Email is another service on the same infrastructure. When "the internet is down," usually it's your connection to the infrastructure; when "a website is down," usually it's one server.
The four pieces, in one table
| Piece | Job | Example |
|---|---|---|
| Browser | Asks for pages and renders them | Chrome, Firefox, Safari |
| DNS | Translates domain names to IP addresses | parhodev.com to 142.250.190.78 |
| Server | Stores files and answers requests | Your web host's computer |
| HTTP/HTTPS | The language of requests and responses | The S means encrypted |
Where things break
When a site misbehaves, the symptom usually points at the layer. This table is worth bookmarking:
| Symptom | Likely layer | What it means |
|---|---|---|
| Nothing loads, browser says it can't reach the site | DNS or network | The name isn't resolving, or your connection is down |
| "404 Not Found" | Server | The server answered, but that path has no file |
| "500" error | Server | The server's own code crashed; nothing wrong on your end |
| Page loads but looks broken, no styling | Browser / requests | The CSS file request failed; check the network tab in DevTools |
| Everything is slow | Any layer | Measure first: server response time vs. page weight vs. connection |
Worked example: one HTTPS page load in more depth
Take a visit to a shop page over HTTPS. After DNS gives the browser an IP address, the browser opens a connection to the server and starts the TLS handshake before any page data moves. During that handshake the server sends its certificate. The certificate is a small file that states the domain name it covers, the dates when it is valid, and the name of the certificate authority that issued it.
The browser checks several things on its own. It confirms the domain in the certificate matches the domain in the address bar. It checks the start and end dates against the current date. It follows the chain of signatures up to a certificate authority it already trusts, using the list of trusted authorities stored with the browser or the operating system. It also checks whether the certificate has been revoked, either by asking the authority or by using revocation information stapled to the handshake by the server. If a check fails, the browser shows a warning page and stops the load until the user decides what to do.
When the checks pass, the browser and the server agree on encryption keys for the session and the padlock appears in the address bar. The browser then sends the HTTP request inside that encrypted connection and the server sends the page back the same way. Routers and networks along the path can see the IP address and timing. They cannot read the page content or the full URL path because that data travels encrypted.
The padlock tells you the connection to that domain is encrypted and the certificate matched the domain. The padlock says nothing about whether the shop itself is honest, whether its prices are fair, or whether the business will ship what you ordered. A scam site can have a valid certificate for its own domain. The padlock also says nothing about what the site does with your data after you send it. Read the shop details, payment options, and return terms separately from the padlock.
What a CDN changes in the journey
A content delivery network, or CDN, stores copies of a site files on servers in many locations. Without a CDN, every visitor connects to the one origin server, even when that server sits on another continent. The distance adds delay to each request, and the origin carries the full load.
With a CDN in place, DNS or routing directs the visitor to a nearby CDN server, often called an edge server. That server already holds a cached copy of images, stylesheets, and sometimes full pages. It serves those files directly, so the trip is shorter and the origin server handles fewer requests. Pages that change per user, such as a cart or an account page, still go back to the origin or get assembled from origin data. When the site owner publishes a change, the CDN needs to refresh its copies, a step called purging or invalidation. Until that refresh runs, some visitors may see the older cached version.
Frequently asked questions
Do I need to understand all of this to build websites?
Not deeply. But when something breaks, knowing which layer to blame saves hours of guessing. That alone repays the six minutes this took to read.
What is hosting, exactly?
Renting space on a server computer that stays on and connected, so it can answer requests for your files at any hour. That's the whole business model.
Is HTTPS really necessary for a simple site?
Yes. Browsers warn users about non-HTTPS pages, and search engines prefer encrypted ones. Certificates are free these days; there is no reason to skip it.
Last verified: October 22, 2026, against MDN Web Docs. The fundamentals here are stable; MDN remains the reference.
Want the server side handled too?
We build and deploy the whole stack: code, server setup, and launch.
Get a quote →