Every time you visit a website, a precisely choreographed sequence of network operations runs in the background — in a fraction of a second. This article explains, step by step, what actually happens when you type a URL and hit Enter. No prior knowledge required.
Table of Contents
The client-server model: the core idea
The web is built on the client-server model. Your browser (the “client”) requests content, and a web server (somewhere in the world, often in a data center) delivers it. The client makes the request, the server responds — this simple division of roles is the foundation of practically the entire internet, from websites to apps to streaming services.
What happens when you type a URL?
Say you type https://example.com into the address bar. Roughly, the following happens:
- The browser checks whether it already knows the associated server address (DNS cache); if not, it asks a DNS server
- The browser establishes a connection to the server (including an encryption handshake for HTTPS)
- The browser sends an HTTP request (“give me the homepage”)
- The server processes the request and sends back an HTTP response containing the HTML document
- The browser reads the HTML, discovers additional resources (CSS, JavaScript, images), and requests those too
- The browser assembles everything into the visible page (rendering)
On a fast connection, all of this often takes less than a second.
DNS: how a name becomes an address
Computers on the internet find each other via IP addresses (e.g. 93.184.216.34), not names like “example.com”. The Domain Name System (DNS) translates human-readable domain names into these numeric addresses — comparable to a phone book. When you type a URL, your browser (usually via your internet provider’s DNS server or a public one like 1.1.1.1) asks for the matching IP address before it can even open a connection to the actual web server.
HTTP: the language of the web
HTTP (Hypertext Transfer Protocol) is the rulebook that defines how browsers and servers communicate with each other. It defines what a request must look like and how a response is structured. Important HTTP methods:
- GET — request data (e.g. load a page)
- POST — send data to the server (e.g. submit a form)
- PUT/PATCH — update existing data
- DELETE — delete data
Every HTTP response also includes a status code summarizing the outcome of the request — such as 200 OK (all good), 301 (moved permanently), 404 Not Found (not found), or 500 Internal Server Error (server error).
The request-response cycle in detail
An HTTP request consists of a method, a URL, headers (metadata like browser type or accepted languages), and optionally a body (e.g. form data). The server’s response includes a status code, its own headers (e.g. content type, caching rules), and a body containing the actual content — usually HTML, but also JSON, images, or other file formats. Modern web pages often load dozens of separate requests in parallel: one for the HTML document, and more for every image, CSS file, and script.
HTTPS: why security matters
HTTPS is HTTP plus encryption via TLS (Transport Layer Security). Without encryption, anyone on the same network (like public Wi-Fi) could read what you send to a server — including passwords or payment data. HTTPS prevents this with an encryption handshake at connection setup; after that, all traffic is unreadable to third parties. Browsers today mark unencrypted HTTP pages as “not secure” by default — a good reason why practically every reputable website now uses HTTPS.
Browsers: more than just a window into the web
The browser itself is a complex program: it manages network connections, interprets HTML/CSS/JavaScript, renders layout and graphics, executes JavaScript code via its own engine (e.g. V8 in Chrome), and enforces security mechanisms like the same-origin policy, which prevents a website from reading data from another site without authorization. All of this machinery runs invisibly in the background while you simply look at a page.
Summary: the whole journey at a glance
Type a URL → DNS translates the name into an IP address → the browser opens an (encrypted) connection to the server → the browser sends an HTTP request → the server responds with a status code and content → the browser fetches additional resources → the browser renders the finished page. This cycle repeats with every click, every form submission, and every page navigation on the web.
Frequently Asked Questions
What actually happens technically when I load a URL?
The browser looks up the server’s IP address via DNS, opens a (usually encrypted) connection, sends an HTTP request, and receives a response with the HTML document, which it then renders.
What is the difference between HTTP and HTTPS?
HTTPS is HTTP plus encryption via TLS. Without encryption, anyone on the same network could read what you send to a server.
What does DNS stand for and why do I need it?
DNS stands for Domain Name System and translates human-readable domain names like example.com into the numeric IP addresses computers need to communicate.
What does an HTTP status code like 404 mean?
Status codes summarize the outcome of an HTTP request. 404 means not found, 200 means success, and 500 means a server error.
Do you need programming knowledge to understand the client-server model?
No. The core idea, a client requests and a server responds, can be understood with zero prior knowledge, and it is the foundation of almost everything on the web.





