plopslop

Web Browser Engineering

browser.engineeringadded August 2026

Laying Out Pages

Web Browser Engineering5 Apr 2021

So far, layout has been a linear process that handles open tags and close tags independently. But web pages are trees, and look like them: borders and backgrounds visually nest inside one another.

Constructing an HTML Tree

Web Browser Engineering4 Feb 2021

So far, our browser sees web pages as a stream of open tags, close tags, and text. But HTML is actually a tree, and though the tree structure hasn’t been important yet, it will be central to later...

Formatting Text

Web Browser Engineering11 Dec 2020

In the last chapter, our browser created a graphical window and drew a grid of characters to it. That’s OK for Chinese, but English text features characters of different widths grouped into words...

Drawing to the Screen

Web Browser Engineering13 Aug 2020

A web browser doesn’t just download a web page; it also has to show that page to the user. In the twenty-first century, that means a graphical application.There are some obscure text-based...