Latte Web

A collection of hands-on web exercises and experiments. Like a latte—one part espresso, two parts milk, and one part foam—a familiar, approachable blend for everyday learning.

一组动手实践的 Web 练习与实验。就像一杯拿铁——一份浓缩、两份牛奶、一份奶泡——熟悉、易入口,适合日常学习。

Learn how the web works by building small versions of it: Promise/A+, mini React, a router, a bundler and more. Run a page, follow the guide beside it, then read the code.

Start buildingView on GitHub

74 examples · 872/872 Promises/A+ tests · every page tested in Chromium, Firefox and WebKit

1 foam2 milk1 espresso</>

Fundamentals基础

How JavaScript and the browser behave, one small page at a time.

Build it yourself动手实现

Small, tested versions of tools you use every day.

Build tools构建工具

How source files become something a browser can load.

Applications and experiments应用与实验

Complete applications with old and new versions side by side, plus visual experiments.

History历史笔记

Notes kept from earlier years. Read them for context; they are not current advice.