Skip to interview prep
Apexed

31. What happens when you type a URL into a browser and press Enter?

MediumWeb & APIs

Technical
Show model answer

The browser parses the URL, checks caches, resolves the domain through DNS, opens a TCP connection (or QUIC) and negotiates TLS, then sends an HTTP request.

The server (often behind a CDN and load balancer) responds; the browser parses HTML, fetches CSS, JavaScript and images, builds the DOM and CSSOM, lays out and paints the page, and runs scripts. Mention where caching and HTTP/2 or HTTP/3 help.

What happens when you type a URL into a browser and press Enter — Software engineering interview question — Apexed