What happens when you type a URL in the browser, in 4 steps?

IntermediateConceptNetworking
Answer
  1. A DNS lookup resolves the hostname to an IP.
  2. A TCP connection is opened (or QUIC for HTTP/3).
  3. The TLS handshake runs: certificate check and key exchange.
  4. The HTTP request is sent, the response comes back, and the browser renders it and fetches the page's other resources.
All Real-World Interview questions Roadmap: Interview readiness

More on Networking