How the Web Works: From Click to Page

A plain-language walkthrough of what really happens when you visit a website — from typing an address to the browser drawing the page on your screen.

Published September 15, 20269 min readBy ACY Partner Indonesia
Diagram of a web request travelling from a browser to a server and back
300 × 250Ad Space AvailablePlace your ad here

You open your browser, type an address, press Enter — and a second later a full page appears, complete with text, images, and buttons that work. It feels instant, almost magical. But behind that single moment is a small, well-rehearsed conversation between your computer and a machine that might be on the other side of the planet.

This article walks through that conversation from start to finish, in plain language. You don’t need any coding background. By the end, you’ll have a clear mental map of what happens between your click and the finished page — the same map every web developer carries in their head.

The cast of characters

Before we follow the journey, let’s meet the players. There are only a few, and each has one job.

The client is the thing asking for something. Most of the time that’s your browser — Chrome, Firefox, Safari, Edge. A browser’s whole purpose is to fetch web content and draw it on your screen.

The server is the thing that answers. It’s a computer, usually running somewhere in a data center, that stores a website and hands out its pages when asked. “Server” sounds intimidating, but the word just means “something that serves” — like a waiter who brings you what you order.

Between them sits the network: the cables, routers, and wireless links that carry messages back and forth. You can picture it as the postal system. You don’t need to know every road your letter takes; you just trust it’ll arrive.

Client and server are roles, not gadgets

A “server” isn’t a special golden box. It’s an ordinary computer doing the job of answering requests. Your own laptop can act as a server too. The words describe who is asking and who is answering in a given exchange — nothing more.

Step 1 — You ask for something

The journey starts with you. You might type acy-partner.com into the address bar, click a link, or tap a bookmark. Either way, you’ve handed the browser a URL — a web address.

A URL has a few parts worth naming, because they each do something:

https://blog.acy-partner.com/en/some-article
└─┬─┘   └────────┬────────┘ └──────┬──────┘
scheme       hostname            path
  • The scheme (https) says which language the browser and server will speak. https is the secure, encrypted version of http.
  • The hostname (blog.acy-partner.com) names which server you want.
  • The path (/en/some-article) names which page on that server.

Right now the browser has a name, like blog.acy-partner.com. But computers on a network don’t find each other by name — they find each other by number. So the very first problem to solve is translating that friendly name into a number.

Step 2 — Finding the address (DNS)

Every machine reachable on the internet has an IP address, a string of numbers like 93.184.216.34. Names like acy-partner.com exist purely for humans; the network underneath runs on these numbers.

Turning a name into a number is the job of DNS, the Domain Name System. Think of it as the phone book of the internet: you know the name of who you want to reach, and DNS looks up their number for you.

Your browser:  "What's the IP for blog.acy-partner.com?"
DNS system:    "It's 93.184.216.34."

This lookup usually takes a few thousandths of a second, and the answer gets remembered (cached) for a while so it doesn’t have to be repeated on every click. DNS is a whole topic on its own — we’ll devote a separate article to how that phone book is actually organized, because it’s surprisingly clever.

Why names instead of numbers?

Numbers are hard to remember and they change when a site moves to new hardware. Names stay the same even when the underlying number changes. DNS lets the human-friendly name and the machine-friendly number stay independent.

Step 3 — Opening a connection

Now the browser has a number — it knows where the server lives. The next step is to actually reach out and establish a line of communication, like dialing a phone before you start talking.

This connection is built on a set of agreed rules called TCP/IP. The details aren’t important here; what matters is the idea. Your browser and the server perform a quick back-and-forth greeting — often called a handshake — to confirm both sides are ready and listening.

If the address used https, one more thing happens during setup: the two sides agree on encryption. They privately settle on a secret code so that everything sent afterward is scrambled to anyone snooping on the network. That’s the “secure” in a secure connection — the padlock icon you see in the address bar.

With the line open and (for https) secured, the browser is finally ready to ask for the page.

Step 4 — Sending the HTTP request

The browser now sends a request. The rules for how that request is written are called HTTP — the HyperText Transfer Protocol. HTTP is simply the agreed format both sides use, like a standard form everyone fills out the same way.

A simplified request looks like this:

GET /en/some-article HTTP/1.1
Host: blog.acy-partner.com
Accept: text/html

Reading it line by line:

  • GET is the method — what you want to do. GET means “give me this.” There are other methods, like POST for “here’s some data to save” (think submitting a form).
  • /en/some-article is the path — which page you’re asking for.
  • The lines below are headers: extra notes about the request, such as which site you mean (Host) and what kind of content you can accept.

That’s the whole request: a method, a path, and some headers. It travels across the network to the server. HTTP is the backbone of the entire web, so it too will get its own dedicated article.

Step 5 — The server responds

The server receives the request and gets to work. It figures out what you asked for, possibly looks things up in a database, and assembles an answer. Then it sends back an HTTP response.

A response has three parts: a status, some headers, and the content (the body).

HTTP/1.1 200 OK
Content-Type: text/html

<!DOCTYPE html>
<html>...the page...</html>

The first line carries a status code — a short number that tells the browser how things went. You’ve probably seen one of these before: the famous 404. Here are the ones worth recognizing:

Code Meaning Plain English
200 OK Here’s what you asked for.
301 / 302 Redirect It moved — look over here instead.
404 Not Found I don’t have that page.
403 Forbidden You’re not allowed to see this.
500 Server Error Something broke on my end.

After the status and headers comes the body: in our case, the actual HTML of the page. HTML is the text-based description of a page’s structure — its headings, paragraphs, images, and links. The server just hands over this description; it doesn’t draw anything itself.

The first response is rarely the whole page

That initial HTML is usually just the skeleton. Inside it are references to other files — stylesheets, images, fonts, scripts. The browser reads the HTML, spots each reference, and fires off more requests to fetch them. A single page you visit can quietly trigger dozens of round trips.

Step 6 — The browser renders the page

Now the browser has the raw HTML in hand, and the final act begins: turning that text into something you can see and use. This stage is called rendering.

Roughly, the browser does three things:

  1. Reads the HTML to understand the structure — this is a heading, that’s a paragraph, here’s an image. It builds an internal tree of all these elements.
  2. Applies the styling. Separate files written in CSS describe how things should look: colors, fonts, spacing, layout. The browser fetches those and paints accordingly.
  3. Runs the scripts. Files written in JavaScript add behavior — menus that open, content that updates, buttons that respond. The browser runs this code to make the page interactive.

As each extra file arrives, the picture fills in. Text shows up first, then images snap into place, then the page becomes clickable. What feels like one instant load is really a rapid series of arrivals, each one making the page a little more complete.

The whole journey at a glance

Here’s the entire trip in one picture:

   YOU                    NETWORK                 SERVER
    │                        │                       │
    │ 1. type URL / click    │                       │
    │───────────────────────▶│                       │
    │ 2. DNS: name → IP       │                       │
    │◀──────────────────────▶│                       │
    │ 3. open connection      │                       │
    │───────────────────────────────────────────────▶│
    │ 4. HTTP request         │                       │
    │───────────────────────────────────────────────▶│
    │                         │   5. build response   │
    │ 6. HTTP response (HTML) │                       │
    │◀───────────────────────────────────────────────│
    │ 7. render: HTML+CSS+JS  │                       │
    │   (+ fetch more files)  │                       │
    ▼                         │                       │
  PAGE!                       │                       │

Read top to bottom, that’s the life of a single page view. Multiply it by the dozens of small files each page needs, and you have the quiet, constant traffic that powers everything you do online.

Recap and where to go next

Let’s gather the whole thing into a few sentences you can carry with you:

  • You give the browser a URL by typing or clicking.
  • DNS turns the human-friendly name into a numeric IP address so the network can find the server.
  • The browser opens a connection to that server, securing it with encryption when the address uses https.
  • It sends an HTTP request — a method, a path, and some headers.
  • The server replies with an HTTP response — a status code plus the page’s HTML.
  • The browser renders that HTML, pulls in CSS and JavaScript, and the finished, interactive page appears.

That’s the spine of the entire web. Almost everything else you’ll learn — how websites are built, how apps talk to each other, how data is sent and saved — hangs off this one loop of request and response.

Two pieces in this story are big enough to deserve their own deep dives, and they’re natural next stops: DNS, the naming system that finds the server, and HTTP, the language the browser and server speak. Once those two click into place, the rest of the web starts to feel a lot less like magic and a lot more like a system you understand.

Tags:webhow-the-web-workshttpdnsbrowserfundamentals
728 × 90Ad Space AvailablePlace your ad here

Related Articles

See All Articles

You Might Also Like

Browser compatibility and polyfills cover with code chip if not supported, polyfill
Web Fundamentals / Browsers

Browser Compatibility and Polyfills

Why the same web page can look or behave differently across browsers, and how feature support, progressive enhancement, polyfills, and transpilers help your site work everywhere.

Sep 15, 20269 min read
An Intro to Browser Developer Tools — ACY Partner Indonesia Blog
Web Fundamentals / Browsers

An Intro to Browser Developer Tools

Every browser hides a powerful toolkit behind one key. Meet DevTools and its main panels, and learn how they let you see the DOM, styles, network requests, and storage for yourself.

Sep 15, 202610 min read
Browser Security Basics cover with a same-origin shield code chip
Web Fundamentals / Browsers

Browser Security Basics: How Your Browser Quietly Protects You

A friendly, beginner-first tour of how your browser keeps you safe: the same-origin policy, tab sandboxing, the HTTPS padlock, mixed content, and a gentle intro to why input can be dangerous.

Sep 15, 202611 min read
Browser storage options shown on a dark ACY Partner blog cover
Web Fundamentals / Browsers

Browser Storage: Cookies, localStorage, and More

A beginner-friendly tour of where the browser keeps data: cookies, localStorage, sessionStorage, and IndexedDB. Learn what each one does and when to reach for it.

Sep 15, 20269 min read
Illustration of a browser engine running scripts through an event loop
Web Fundamentals / Browsers

How Browsers Handle JavaScript

A beginner-friendly look at how the browser parses, compiles, and runs JavaScript, why it has one main thread, and how script loading affects what you see on screen.

Sep 15, 20269 min read
Dark blue cover with the title How Browsers Work and a parse to layout to paint code chip
Web Fundamentals / Browsers

How Browsers Work: An Overview

A beginner-friendly tour of what your browser does between typing a URL and seeing a page: networking, parsing, the render tree, layout, paint, compositing, and the JavaScript engine.

Sep 15, 20269 min read