Direct answer: A web browser turns a URL into pixels through a fixed pipeline: DNS resolves the address, HTTP fetches the document, HTML becomes a DOM tree, CSS computes layout, and compositing paints the screen. That breadth of work is why the browser behaves like an operating system for documents.

The Wikipedia page titled Web browser drew 12,199 views on November 24 per the Topviews leaderboard, a reminder that people still wonder what the tool on their screen actually does. The machinery is documented openly in the MDN Web Docs, and none of it requires a computer science degree to follow.

One page load involves half a dozen systems cooperating in milliseconds. Walking the pipeline once makes the whole web feel less mysterious, because every site you visit repeats exactly the same steps. Start where every load starts: turning a name into an address.

The journey of a single page load

DNS, the domain name system, is the internet's phonebook: it translates a name like example.com into a numeric server address. Browsers cache recent answers, so repeat visits often skip the lookup entirely. Once the address is known, the browser sends an HTTP request, the protocol that asks a server for a resource.

The server responds with an HTML document, which arrives as plain text with angle brackets. Nothing has been drawn yet. The browser now begins the part most people never think about: turning that text into something a screen can show.

1 DNS lookup2 HTTP fetch3 build DOM4 CSS layout5 paintthe same five steps repeat for every page on the webfrom a typed URL to visible pixels

From HTML text to painted pixels

Parsing converts the HTML text into the DOM, the document object model, which is a tree of nodes the browser can manipulate. Stylesheet rules join the tree, and the layout pass computes the exact position and size of every box on screen. Only then does painting begin.

Compositing is the last step: painted layers are stacked like transparencies into the final image. Splitting the work lets the browser redraw one moving layer without repainting the page, which is why scrolling stays smooth even on heavy pages. Modern engines also run sites in separate processes, so a crashed tab rarely sinks the whole session.

StageInputOutput
DNSA domain nameA numeric server address
HTTPA request for the pageAn HTML document
ParsingHTML textA DOM tree of nodes
LayoutDOM plus CSS rulesGeometry for every box
CompositingPainted layersFinal pixels on screen
missedyour Brain mapquiz yourselfmasteredWatch your weak spots turn green.

Drop in your PDF - it doesn't leave your device.
Every miss becomes a red node on your map.
Free plan: 21 nodes, no card, no countdown.

Open Brain - free

Why a browser is an operating system for documents

An operating system schedules work, manages memory, isolates misbehaving programs, and offers services to applications. The browser now does all four for pages: it schedules rendering, holds site data in storage, runs each site separately, and exposes graphics and networking to web applications.

The line between document and software has blurred as a result. A spreadsheet running in a tab is nominally a document, yet it behaves like a program with state and inputs. The browser is the layer that makes that possible anywhere, on any machine, which is the quiet genius of the design.

pages and web appsbrowser engine: DOM, layout, paint, scriptsoperating system and hardware

Key takeaways

  • Every page load repeats the same pipeline: DNS, HTTP, DOM, layout, paint, composite.
  • The DOM is the browser's tree-shaped model of a page, built from raw HTML text.
  • Compositing lets one layer move without repainting the page, which keeps scrolling smooth.
  • Separate processes per site contain crashes, a habit browsers borrowed from operating systems.

Quick answers

What does DNS actually do?
It translates a readable domain name into the numeric address a server can be reached at.

What is the DOM?
The tree of objects the browser builds from HTML, which scripts and styles then act on.

Why do tabs crash separately?
Sites run in isolated processes, so one page failing does not take down the session.

Is a browser an operating system?
Not literally, but it schedules, isolates, and serves applications the way one does.

One thing to do tonight

Open any page tonight, choose view source, and find one tag you recognize. Trace in your head how that text becomes a DOM node, then a box with a position, and finally pixels on your screen.