How a browser loads a web page step by step, from DNS lookup and TCP and TLS setup to the HTTP request, response and status codes.
When you open a website, your browser and a faraway computer hold a short, strict conversation. Its rules are HTTP, the HyperText Transfer Protocol.
A protocol is an agreed set of rules for exchanging messages.
Click the keys to type google.com into the address bar, then press Enter. The browser suggests the rest as you type, just like a real one.
Computers find each other by numeric IP addresses, not names. The browser asks a DNS resolver which address belongs to google.com, unless it already remembers.
Answers are cached, so repeat visits often skip this trip. The address shown is an example.
Next the browser opens a TCP connection to the server's port 443 with a three-way handshake: SYN, SYN-ACK, ACK. Now both sides know the line works.
HTTP/3 uses QUIC over UDP instead, but the idea is the same.
The s in https means the conversation is wrapped in TLS encryption. The server presents its certificate, the browser checks it, and both agree on secret keys.
TLS 1.3 needs only one round trip before HTTP can start.
Now HTTP itself begins. The browser sends a short text message: a start line with the method GET and the path /, headers such as Host, then a blank line.
GET asks for a resource and carries no body. POST would send data in a body.
The server answers with a status line, headers that describe the content, a blank line, and the body: the page's HTML. The browser turns that HTML into the page you see.
Simplified: real responses carry many more headers.
Every response starts with a three-digit status code. The first digit gives its class: 2xx success, 3xx redirect, 4xx a client mistake, 5xx a server problem. Pick one to see it.
A 404 comes from a working server: the page just is not there.
A page is rarely one file. Styles, scripts and images each need their own request. The open connection is reused, so DNS, TCP and TLS are not repeated.
HTTP is stateless: each request stands alone. Cookies carry memory between them.