The browser finds the server's IP address through DNS, checking caches first. It opens a connection, usually TCP, and for HTTPS performs a TLS handshake to agree encryption and check the server's certificate. It sends an HTTP request, the server processes it and returns a response with a status code and content. The browser then parses the HTML, fetches the CSS, JavaScript and images it references, and renders the page.
Why interviewers ask this
This classic question tests whether you understand how the web works end to end, across networking, servers and browsers. The interviewer is not expecting every detail, but wants the main stages in the right order, with enough depth to show you know what DNS, TLS and HTTP each do. Being able to go deeper on whichever stage they pick, such as caching or rendering, makes a strong impression.
How to structure your answer
- Start with DNS resolution and caching.
- Cover the connection and the TLS handshake.
- Explain the HTTP request and response.
- Finish with how the browser renders the page.
Example answer
First the browser needs the server's IP address, so it checks its own cache, then the operating system's, and if needed asks a DNS resolver, which looks the name up through the DNS hierarchy and returns an address. Next it opens a connection to that address, usually TCP, on port 443 for HTTPS. Because it is HTTPS, there is a TLS handshake: the server presents a certificate proving it owns the domain, and the two sides agree encryption keys so nothing can be read in transit. Then the browser sends an HTTP request, a GET for the page, with headers such as cookies. On the server side, a load balancer might pass the request to an application server, which might query a database before building the response. The response comes back with a status code, like 200 for success or 404 for not found, plus headers and the HTML. Finally the browser parses the HTML, requests the CSS, JavaScript and images it references, builds the page and renders it. I am happy to go deeper on any part; DNS was my favourite topic in my networks module.
Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.
See how it worksFollow-up questions to expect
- What does a DNS resolver actually do?
- How does the browser know a certificate is genuine?
- What can be cached along the way to make this faster?
Related software engineering intern questions
Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.
Predict my questions