Why interviewers ask this
It tests your understanding of the web end to end.
How to approach it
Walk through DNS lookup, TCP and TLS connection, HTTP request, server response and rendering in order.
Example answer
The browser resolves the domain through DNS, opens a connection to the server, negotiates HTTPS, sends an HTTP request, receives HTML, then fetches CSS, JavaScript and images and renders the page.
What a weak answer sounds like
The page loads from the internet.
It is vague, has no example and gives the interviewer nothing to remember.
A simple structure for your answer
- DNS lookup
- TCP connection and TLS handshake
- HTTP request and server response
- Browser parses and renders the page
Freshers and experienced candidates
Freshers can give the main steps; experienced candidates can add caching, CDNs and load balancers.
Common mistake
Skipping steps or jumping straight to rendering.
Self-check before the interview
Can you also give the three-sentence version for a non-technical person?
Follow-up questions to expect
- What is DNS?
- What does HTTPS add?
- How do caches speed this up?
How to practise
Practise the answer in ten steps, then again in three sentences for a non-technical listener.
Use this as a pattern, not a script. Answer in your own words with your own examples.