What is a website, really?
What's actually happening behind every web page
⏱ Est. ~7 min
01 · Read
Every time you open a website, something remarkable happens behind the scenes. Your browser sends a message to the other side of the planet, a distant computer sends a package of files back, and your screen lights up with a complete web page in about one to three seconds.
Understanding this process matters because it strips away the mystery. When a page is slow, a link is broken, a site is down — there are concrete reasons, all rooted in how websites actually work. You're not at the mercy of magic; you're looking at a system with parts you can understand.
Think of visiting a website like ordering a book from a library in another city. You send a request with the book's title, the librarian finds it on a shelf, packages it, and ships it back to you. The "internet" is the post office, the "server" is the library, and the "browser" is you — reading the book once it arrives.
💡 Picture thisVisiting a website is like ordering a book from a distant library — you send a request, someone finds the right files, and ships them back for your browser to display.
Key points
- Every visit involves: browser sends a request, server sends a response
- The process is concrete and understandable step by step — no magic
- Knowing the steps helps you debug issues like "slow loading" or "broken page"
02 · Step-through
Walk through the 7 steps that happen every time you visit a site. Click "Next" to follow the whole journey.
1. You type a URL
You type something like www.example.com into your browser's address bar and press Enter. The URL is like a street address — it tells the internet where you want to go.
2. DNS looks up the address
Your browser asks a DNS (Domain Name System) server to translate www.example.com into a number like 93.184.216.34. Computers find each other using these numbers (called IP addresses), just like GPS uses coordinates instead of street names.
3. The browser sends a request
Your browser sends a message across the internet to the server at that IP address, saying: "Please send me the web page at this URL." This message is called an HTTP request.
4. The server receives the request
A computer (the server) somewhere in the world receives your request. It might be in a data center in Virginia, a warehouse in Dublin, or anywhere else on Earth.
5. The server finds the files
The server figures out which HTML, CSS, JavaScript, and image files are needed for this page. Sometimes it also queries a database to assemble the page on the fly.
6. The server sends a response
The server packages up those files and sends them back over the internet to your browser. This is called the HTTP response.
7. Your browser renders the page
Your browser receives the files and assembles them into the page you see: HTML provides the structure, CSS makes it look good, JavaScript makes it interactive. The whole process takes about 1 to 3 seconds.
03 · Read
Here's the key insight: a website is just files sitting on someone else's computer.
When you visit a site, you're really just downloading files (HTML, CSS, JavaScript, images) from a computer somewhere in the world, and your browser assembles them into the picture you see.
No magic. The "cloud" is someone else's computer. A website is files. A browser is a file viewer that displays those files nicely.
Key points
- A website is files (HTML, CSS, JS, images) stored on a server
- Your browser downloads those files and renders them into a page
- The whole process takes about 1 to 3 seconds
- The "cloud" is computers packed into large buildings called "data centers"
04 · Quiz
When you type a URL and press Enter, what happens first?
- The server immediately sends you the web page
- JavaScript starts running in your browser
- Your browser uses DNS to translate the URL into an IP address
- The website downloads to your hard drive
Other lessons in this chapter
⚠ The full interactive experience needs JavaScript. Please enable it and reload.
※ This is an independent Traditional Chinese teaching project — not an official Anthropic product. Claude™ is a trademark of Anthropic, PBC.