The trip, step by step
- You type
docerity.com. The browser asks DNS which server that name points to, and gets back an IP address. - It opens a connection to that server and, for an
httpsaddress, agrees on encryption (TLS). - It sends an HTTP request:
GET /plus some headers. - The server answers with a response: a status code (
200 OK,404 Not Found) and a body, usually HTML. - The browser reads the HTML, fetches the CSS, JavaScript and images it points to, and draws the page.
Words to keep
- Client: the browser asking. Server: the computer answering.
- Front end: what runs in the browser. Back end: what runs on the server.