Frontend explained

What happens between the HTML a server sends and the page you can click: the tree the browser builds, and the code that keeps changing it.

17 conceptsBeginner to Advanced

Every frontend concept

FrontendBeginner

The DOM

The live tree a browser builds from HTML, and how scripts change it.
OPEN LESSON
FrontendIntermediate

useEffect lifecycle

When React effects run, when they clean up, and what the dependency array decides.
OPEN LESSON
FrontendBeginner

The CSS box model

Content, padding, border and margin: how a browser sizes every box on a page.
OPEN LESSON
FrontendIntermediate

The cascade and inheritance

How a browser picks one value when several CSS rules compete, and what is inherited.
OPEN LESSON
FrontendBeginner

Flexbox

Three boxes in a row start at a size, then grow, shrink and align along two axes.
OPEN LESSON
FrontendIntermediate

Reflow vs repaint

Why changing a width costs the browser more than changing a colour.
OPEN LESSON
FrontendAdvanced

GPU compositing

How browsers split a page into layers and let the graphics chip move them.
OPEN LESSON
FrontendIntermediate

React Server Components

Components that run only on the server, and what the browser gets instead of their code.
OPEN LESSON
FrontendBeginner

Props vs state

What a component is given, what it owns, and where shared data should live.
OPEN LESSON
FrontendBeginner

Component lifecycle

A component appears, updates and is removed: what runs at each moment, and why.
OPEN LESSON
FrontendBeginner

One-way vs two-way data binding

Which way data moves between a program and the screen, and what each direction costs.
OPEN LESSON
FrontendIntermediate

Signals and fine-grained reactivity

Values that know who reads them, so one change updates exactly what depends on it.
OPEN LESSON
FrontendIntermediate

Hydration

Server-sent HTML looks ready at once; a script then wires up the buttons.
OPEN LESSON
FrontendIntermediate

Service workers

A background script sits between page and network and answers from a cache.
OPEN LESSON
FrontendIntermediate

Web Workers

A two-second job freezes the page, until it moves to a second thread.
OPEN LESSON
FrontendBeginner

Event bubbling and capturing

A click travels down to its target and back up, calling listeners in order.
OPEN LESSON
FrontendBeginner

Canvas vs SVG

One circle drawn two ways: as a shape the browser remembers, or as pixels.
OPEN LESSON