Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 14 · From Scratch · Systems from scratch · about 16 min to read

Play it as a journeyTutor comes with a plan

A browser engine of your own

Capstone Keypress to Pixel
Capstone Keypress to Pixel · Open board

The board that follows one key press until a pixel changes colour. A browser engine does the same last step for a whole page: it turns text into a grid of coloured pixels.

Lesson 113 of 117 in From Scratch

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • The problem: a web page is text, a screen is pixels
  • HTML becomes the DOM: a tree of elements
  • CSS rules and selectors: which boxes does a rule talk about?
  • Specificity: when two rules disagree, one must win
  • The style tree: every node with its final settings
  • The layout box: where does each box go?
  • Paint: fill each box with its colour
  • The code
  • Run it
  • Break it: a tag with no closing tag
  • What this leaves out

Terms it explains: tag, DOM, rules, selector, specificity, style tree, box.

Review From Scratch