LearnThatStack Ace your next interview
Networking for Developers · question
Question 1 of 51

What happens when you type a URL into a browser and hit Enter?

beginner
← All Networking for Developers questions
Re-explain

The browser finds the server, asks it for the page, and renders what comes back, in a fixed sequence of small steps.

  • It parses the URL into scheme, host and path.
  • It resolves the hostname into an IP address through DNS.
  • It opens a TCP connection to that server on the right port. For HTTPS, a TLS handshake then sets up encryption.
  • It sends an HTTP request for the path. The server replies with a status code and usually an HTML body.
  • It parses the HTML and fetches the stylesheets, scripts and images it finds, often over the same connection. Then it renders the page.

Each step adds delay, so a slow page usually has one clear culprit, and knowing the sequence tells you where to look first.

Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

Why there's no diagram: “”

The interactive diagram is below the answer - jump to diagram ↓ · Below it, the related concept . Jump to it ↓

The diagram below the answer is the concept . Jump to it ↓

Tailored explanation · switch back to · ·
What should the new diagram focus on?
Guided practice for Networking for Developers One question at a time. Answer out loud, get graded, see what you missed.
How well did you know this?
AI:

Saved in this browser - sign in to keep your review list.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Interview lens How interviewers actually use this question

Likely follow-ups

What you can say

  1. The browser finds the server, asks it for the page and renders what comes back, and it does that as a fixed sequence of small steps.
  2. First it splits the URL into scheme, host and path, then asks DNS to turn the hostname into an IP address.
  3. It opens a TCP connection to that IP on the right port, and for HTTPS a TLS handshake then sets up encryption.
  4. It sends an HTTP request for the path, and the server replies with a status code and usually an HTML body.
  5. The browser parses that HTML, fetches the stylesheets, scripts and images it finds, often over the same connection, and renders the page.
  6. Every step adds delay, so a slow page usually has one clear culprit, and knowing the order tells me where to look first.

Weak answers to avoid

  • Jumps straight to the HTTP request Skipping DNS, TCP and TLS leaves out how the browser finds and reaches the server, and each of those steps adds delay. Name them in order.
  • Recites the OSI layers instead of the steps Seven layer names answer a different question. Walk the steps the browser actually takes, in order, and name the protocol each one uses.
  • Stops once the HTML arrives The browser still has to parse the HTML, fetch stylesheets, scripts and images, and render. Those fetches add delay of their own, so include them.
  • Lists the steps with no sense of cost A bare list sounds memorized. Say that each step adds delay and that knowing the order tells you where to look when a page is slow.
Interview lens

Likely follow-ups, what you can say, and the weak answers to avoid.

Sign in free to open it Free account - the lens opens as soon as you're back.

Want a quick review of the fundamentals? See the Networking for Developers cheatsheet.

← Back to all Networking for Developers questions
Pro · $10/mo

44 of 51 Networking for Developers answers are in Pro.

Full answers, code samples, and AI explanations that go simpler or deeper. Cancel anytime.

  • Full answers + code
  • AI explanations, simpler or deeper
  • 1,000 AI credits / month
  • Cancel anytime