Level 1: Bronze
A memorized definition. Not wrong, but it stops there.
The browser fetches the page from a server and shows it.
3 stars If you are short on time, start with this one.
In one or two sentences
The browser finds the address through DNS, connects with TCP and TLS, sends an HTTP request, receives the response, parses the HTML and paints the page.
Say it out loud, or type it below. What you type never leaves this device.
A memorized definition. Not wrong, but it stops there.
The browser fetches the page from a server and shows it.
Correct, but too broad or missing context.
DNS turns the domain into an IP address, the browser opens a TCP connection and sends an HTTP request. The HTML in the response is parsed and drawn on screen.
Reaches principle, use and trade-off, with words that invite the next question.
First it gets an IP from caches, the hosts file and DNS. Then it does a TCP handshake, plus a TLS handshake for HTTPS, and sends the request. The server answers through load balancers and the application. The browser parses the HTML into a DOM and requests sub resources such as CSS and scripts. It builds a render tree from the DOM and CSSOM, then lays out and paints. Caching and connection reuse at every step decide how fast it feels.
These are likely next questions from an interviewer. Think of your answer first, then press the button.
1 / 3
In what order does a DNS lookup go?
Browser and OS caches first, then the resolver. The resolver follows root, TLD and authoritative name servers to get the answer, then caches it.
2 / 3
How do HTTP/1.1 and HTTP/2 differ?
HTTP/2 multiplexes many requests on one connection and compresses headers. In 1.1 requests on a connection are handled in order, so a slow one blocks those behind it.
3 / 3
Which resources block rendering?
CSS blocks rendering and a synchronous script pauses HTML parsing. That is why scripts get defer or async, or move to the bottom.