How the web works

Every page you open follows the same short journey. You ask for something by its address, a machine somewhere sends back a text document, and your browser turns that text into the page you see. HTML is the language that text is written in, so understanding the trip it makes is the backdrop for everything else in this handbook.
Client and server
The web is a conversation between two sides. Your browser is the client: the program that asks for pages. The machine that holds a website and hands it over is the server. You ask, it answers.
Think of ordering at a restaurant. You are the customer, the kitchen is out of sight, and a waiter carries your order back and forth. You do not walk into the kitchen and cook. You ask for a dish, and the kitchen prepares it and sends it out. Your browser is the customer, the server is the kitchen, and the web is the waiter running between them.
URLs and domains
The address you type is a URL: a Uniform Resource Locator. It is the full address of one thing on the web, the way a postal address points to one house.
Look at https://scrimba.com/learn. The https part is how the browser should talk to the server. The scrimba.com part is the domain, the name of the website, like the street and town. The /learn part is the path to one particular page, like the house number. Together they point at exactly one page, and typing them tells the browser where to go.
https says how to talk to the server, the domain like scrimba.com is the site's name, and the path like /learn points at one page on it. Read it left to right and it tells you exactly where the browser is headed. The request and response cycle
When you press enter, your browser sends a request to the server: a short message that says "please send me this page". The server sends back a response: the page itself. That there and back is one full trip, and it is what happens every single time you open a page or click a link.
Picture asking a librarian for a book. You give the title (your request), the librarian finds it and hands it over (the response), and now you have it in your hands. If the book does not exist, the librarian tells you that instead, which is a reply too. The web works the same way, far faster and many times a second.
What the browser does with the HTML it receives
The response is a page's worth of HTML text. Your browser reads that text from top to bottom and draws it on screen: it sees a heading tag and shows big bold text, it sees a paragraph tag and shows a line of body text, it sees an image tag and fetches the picture.
You can think of it like reading a recipe and cooking it. The text is not the meal, it is the description of the meal, and the browser is the cook that turns the description into something you can actually see and use. The same HTML always produces the same page, because the browser follows the same instructions every time.

