Plate 0.1 · Phase 0 — Ground Floor · 20 minutes
What actually happens when you visit a website
Before you write a single line of anything, you need one picture in your head. Everything else in this manual hangs off it — and most beginners never get given it.
Why this is the very first thing
People who struggle with web development are almost never struggling with typing. They are struggling because they don't know where their code goes, who runs it, or when. They write something, it doesn't work, and they can't even tell which of the four possible places the problem is in. Twenty minutes now saves you months of that.
So: you open your phone, tap the address bar, type rei.com, and press go. A page appears in about a second. What just happened?
The restaurant
You walk into a restaurant and sit down. You can see the dining room. You cannot see the kitchen, and you will never be allowed in it.
In the restaurant
- You, at the table
- You decide what you want and you wait. You have no control over the kitchen.
- The waiter
- Carries your order there and the food back. Doesn't cook, doesn't decide, just moves things.
- The kitchen
- Somewhere else in the building. Has the ingredients, the recipes and the equipment.
- The order slip
- A short, precise message: table 6, one brisket, no onions.
- The plate that arrives
- What you actually receive. Not the recipe, not the chef — just the result.
On the web
- Your browser — the client
- Chrome, Safari, Edge. It asks for things and displays what comes back.
- The internet
- Cables, fiber, towers. It carries messages. It doesn't understand them.
- The server
- Somebody else's computer, switched on 24/7, holding the site's files and code.
- The request
- A short, precise message: GET me the page at /products/running-shoes.
- The response
- What comes back. Not the server's code — just the result it produced for you.
Hold on to that last row of the table, because it is the single most important line in this module.
The kitchen never sends you the chef.
A server never sends you its program. It sends you the output of running that program, once, for you.
The round trip, six steps
Press the button and walk through it. This exact sequence happens every time you open any page, on any device, anywhere.
- 01You place the orderYou type an address or click a link. Your browser now has one job: get whatever lives at that address.
- 02The browser looks up the street addressComputers don't know names, only numbers. Your browser asks the internet's directory service — DNS — "what number is rei.com?" and gets back something like 203.0.113.42. That number is an IP address.
- 03The request goes outA small text message travels across the world to that computer: the method (
GET), the path (/products/running-shoes), and some notes about you — your language, your browser, whether you're logged in. - 04The server does its workIt might just hand over a file that already exists. Or it might run a program: look up shoes in a database, check if you're logged in, calculate a price with your state's sales tax, and assemble a page on the spot. This is the backend, and it's Phase 7.
- 05The response comes backMostly text: an HTML document, some CSS, some JavaScript — all plain text you could read. Images, fonts and video come as separate files in later round trips. Plus a status number —
200means "here you go",404means "no such thing here",500means "my kitchen caught fire". - 06Your browser builds the pageIt reads the HTML top to bottom, applies the CSS, runs the JavaScript, and paints pixels on your screen. Then it notices it needs 40 more things — images, fonts, icons — and fires off 40 more round trips, all at once.
One page load, start to finish. Six steps happen every time you open a page.
- You place the order. You type an address or follow a link. The browser must now fetch whatever lives there.
- The browser looks up the street address. Computers only know numbers, so it asks DNS, the internet's directory: "what number is rei.com?" The answer, such as 203.0.113.42, is an IP address.
- The request goes out. A small text message names the method (
GET), the path (/products/running-shoes) and a few notes about you. - The server does its work. It hands over a ready-made file, or runs a program that checks a database, your login and your state's sales tax, then builds the page on the spot. This is the backend.
- The response comes back. Mostly plain text: HTML, CSS, JavaScript. Images and fonts arrive separately. A status number rides along:
200means here you go,404no such thing,500my kitchen caught fire. - Your browser builds the page. It reads the HTML top to bottom, applies the CSS, runs the JavaScript and paints the screen. Then it spots 40 more things it needs and sends 40 more requests at once.
Notice that steps 3 and 5 are just text traveling in each direction.
A server doesn't send a picture of a finished page. It sends a flat-pack box: parts and an instruction sheet. Your phone or laptop does the assembly, on your side, using your battery. That's why the same page looks slightly different on different devices, why a slow phone renders a heavy page slowly even on fast wifi, and why "it works on my computer" is a real and constant problem.
Reading a web address like a professional
A URL isn't a magic string. Every piece of it does a specific job, and once you can read one you can guess how almost any site is organized. Click each part.
Click any colored piece of the address above.
One address, six parts:
https://www.rei.com/products/running-shoes?color=black#reviews
| Part | Example | What it tells you |
|---|---|---|
| Protocol | https:// | How to talk. The s means the conversation is encrypted, so café wifi cannot read it. |
| Subdomain | www. | Which building on the property. Often meaningless now, but shop. and blog. can be separate servers. |
| Domain | rei.com | The name someone rents, about $10 to $20 a year. The part that matters for trust. |
| Path | /products/running-shoes | Which page, read like folders on your own computer. |
| Query string | ?color=black | Extra instructions as name=value pairs joined by &. Filters, search and tracking use it. |
| Fragment | #reviews | A spot inside the page. The only part the server never sees. |
To judge whether a link is safe, read the domain right before the first single slash and nothing else.
Proof: a web page is just text you can read
This is the moment most people stop being intimidated. Below on the left is text — the same kind of text a server sends you. On the right is what a browser makes of it. Change a word on the left and watch the right update as you type. Nothing can break; it's your copy.
The flat-pack box, opened. This is the page text the server sent, including one real button at the end:
<h1>Hello, I am a web page</h1> <p>A server sent this as plain text. Your browser did the rest.</p> <p style="color: teal"> Try changing teal to crimson. </p> <button>I am a real button</button>
| Edit the text | What the browser shows |
|---|---|
| None | A large heading, two paragraphs (the second in teal) and a button. |
teal to crimson | The second paragraph turns crimson. Nothing else moves. |
Change the words inside <h1> | The heading shows your new words. |
Delete the closing </p> | The page still renders. Browsers forgive small mistakes. |
The page is only text. Edit the text, and the page changes to match.
That's it. That's the entire secret of the front end: you write instructions in text, the browser turns them into something people can see and touch. Phase 1 is nothing but learning which instructions exist.
Do this now — 5 minutes, on a real website
Reading about it does nothing. Open a laptop or desktop browser (this exercise needs a real keyboard) and follow along on any site you like.
Every browser has DevTools, but their panels differ, and this manual describes Chrome's (Edge's are identical). On a Mac with Safari, Inspect won't even appear until you turn on Safari → Settings → Advanced → Show features for web developers. Chrome is free at google.com/chrome; keep it as your "work" browser even if you browse in something else.
- Open any website — a news site is ideal because they're heavy.
- Right-click anywhere on the page and choose Inspect. Or press F12, or Ctrl+Shift+I on Windows, Cmd+Option+I on Mac. A panel opens. This is DevTools, and it ships free inside every browser. It is the single most useful thing on your machine.
- Click the Network tab, then reload the page. Watch the rows pour in. Every row is one round trip — one of those six-step journeys. Look at the count at the bottom. Fifty? Two hundred? Now you know what "a page" actually costs.
- Click the Elements tab. Move your mouse down the lines of code and watch parts of the page highlight. That is the HTML the server sent — the instruction sheet from the flat-pack box.
- Find the main headline in that code, double-click its text, type your own name, press Enter. The headline on the page changes. Screenshot it if you like.
- Now press reload. Your name is gone. Sit with that for ten seconds — it's the whole point of the exercise.
You never touched their website. You edited the copy that was delivered to your machine — your flat-pack assembly, in your living room. Reloading threw it away and asked for a fresh box. Nobody else on earth saw the change. It's also why the "hack any website in five seconds" videos that show this trick are theater, not hacking.
Three things beginners get wrong
1. "The website lives in my browser." It doesn't. It lives on a server; you keep receiving temporary copies. When a site updates and you still see the old version, you're looking at a copy your browser kept to save time — a cache. A hard refresh fetches a fresh copy: Ctrl+Shift+R on Windows, Cmd+Shift+R on Mac.
2. "The internet and the web are the same thing." The internet is the road network. The web is one kind of traffic on it. Your email app, a video call and an online game all drive the same roads without ever being web pages.
3. "Real developers work on the live site." Almost never. You build a copy on your own machine, where mistakes cost nothing, and only then push it out. Phase 5 is entirely about doing that safely.
Words you now own
- client
- Whatever asks for the page. Nearly always your browser.
- server
- The always-on computer that holds the site and answers requests.
- request
- The message asking for something specific.
- response
- What comes back: a file, plus a status number like 200 or 404.
- HTTP / HTTPS
- The agreed format of those messages. The S means encrypted.
- DNS
- The internet's phone book: turns a name into a number.
- IP address
- That number — a computer's location on the network.
- URL
- A full web address, made of the parts you dissected above.
- render
- The browser's act of turning text instructions into pixels.
- DevTools
- The free inspection panel built into your browser.
Six questions. Four correct to move on.
Close this page and explain to someone — or to the wall — what happens between pressing Enter and seeing a page. If you can say "my browser asks a computer somewhere for text, and then builds the page out of that text myself," you have this module. That sentence will carry you a very long way.