How the web works
Docs15 min
How the web works
Every time you open a page, three things talk to each other:
- 1.Your browser (the client) asks a server for a document.
- 2.The server sends back HTML — text the browser knows how to read.
- 3.The browser turns that text into the page you see.
HTML is not a programming language; it is a describing language. You describe what things are — a heading, a paragraph, a list — and the browser does the drawing. This is why the first skill of web development is learning to say what you mean.
The request/response cycle is the backbone of everything you will build in this roadmap: when you later write a NestJS backend, it will be answering these exact same requests.
Exercise
Open any website, right-click, and choose View Page Source. Find: one <h1>, one <p>, one link. Copy them into a text file and write next to each what you think it does.