The Web FrontendVol. 2 · Part II
0 / 0

Shelves / The Web Frontend

Software Engineering · Volume 2

The Web Frontend

Part II of the Software Engineering roadmap, written out as a textbook that starts from zero. The opening chapter assumes you have never built a web page; every later chapter opens with a plain-language Start here section, then goes all the way to browser internals, framework design and production practice, and ends with a lab of real measurements and a revision sheet. Wherever it clarifies an idea, the browser model is compared with Java, Go, Rust, C++, C and Zig.

23 chapters◷ ~12 h to read ✓ 826 topics? 23 quizzes

Two ways to read this book

New to the webStart with Start Here: How the Web Works and read chapters in order. In each chapter, read the Start here section, type its examples into a file and open it in your browser, answer Check yourself before opening the answers, and take the quiz. Read the deeper sections once the Start here quiz is easy; leave the hardest parts for a second pass. Do the warm-up exercises at the end of the opening chapter, then build the projects in the final chapter as you go.
Experienced engineerSkip the opening chapter. In each chapter, read the Revision sheet at the end first and take its quiz; skim Start here; then use How deep to go to pick the internals sections and lab experiments that fill your gaps. Tick a topic only when you could teach it.

Every chapter has the same shape: Start here (first principles, plain language, small verified examples) → How deep to go (what each mastery level needs) → full-depth sections → Lab (experiments run in a real Chromium and Node, with measured output) → Revision sheet (key ideas, numbers to remember, pitfalls, glossary, quiz).

How to use this book

  1. Read one topic at a time. Each topic heading has a Done tick. Tick it only when you can explain the idea aloud without looking, which is roughly mastery level L2–L3 below.
  2. Run the code. Every comparison block has tabs for each language; type the example out in at least two of them.
  3. Take the chapter quiz at the end. A score of 80% or more counts as passed. Wrong answers show the explanation, so re-read that topic and untick it if needed.
  4. Revisit after a delay. The roadmap's loop applies: recall, explain, implement without notes, break it, measure it.

Mastery levels

L1 RecognitionDefine it and identify it.
L2 WorkingUse it correctly in code or config.
L3 InternalsExplain why it works.
L4 DebuggingDiagnose failures and performance problems.
L5 DesignChoose among competing approaches.
L6 ProductionOperate it under scale, failure, security and cost.

Languages used throughout

HTML · structure & semanticsCSS · cascade & layoutJavaScript · event loopTypeScript · structural typesJava · Spring backend counterpartGo · Rust · C++ · Zig · C via WebAssembly

Examples target evergreen browsers as of late 2026, ES2025, TypeScript 6–7, React 19, Angular 22, and Node 22/24 LTS. Labs were run in Chromium 153 with Playwright 1.64-era tooling. Where a feature is new, the text says so. Check caniuse.com or MDN's Baseline status before relying on it for older browsers.

Contents

  1. FE·00Start Here: How the Web WorksFor readers who have never built a web page: what happens when you open a website, what HTML, CSS and JavaScript each do, the tools you need, your…14 min
  2. FE·12The Web PlatformThe core concepts every other frontend chapter builds on: URLs, origins, browsing contexts, documents, navigation, resource loading, the DOM, CSSOM…29 min
  3. FE·13HTMLHTML as a structure and semantics language: document anatomy, the core elements, semantic meaning and content models, forms end to end, and how…38 min
  4. FE·14CSSCSS from the cascade up: selectors, specificity, inheritance, layers, values and units, the layout algorithms (flow, flexbox, grid, positioning…46 min
  5. FE·15JavaScriptThe language and its runtime: values and types, scope and closures, prototypes and classes, asynchronous programming, the event loop in detail, and…56 min
  6. FE·16TypeScriptA structural type system layered on JavaScript: primitives, interfaces, unions, narrowing, generics, and type-level programming (keyof, mapped…40 min
  7. FE·17DOM & Browser APIsWorking with the live document and the platform's built-in APIs: traversal, events and delegation, the four observers, fetch and URLs, history…37 min
  8. FE·18Browser InternalsWhat happens between typing a URL and seeing pixels: the multi-process architecture, sandboxing and site isolation, and the rendering pipeline…26 min
  9. FE·19Frontend NetworkingHTTP as the browser sees it: HTTP/1.1, HTTP/2, HTTP/3 and QUIC; caching and validators; cookies; the same-origin policy, CORS and preflights…31 min
  10. FE·20AccessibilityBuilding interfaces everyone can use: WCAG and POUR, semantics and accessible names, keyboard and focus, screen readers, contrast, reflow, zoom and…33 min
  11. FE·21UI ArchitectureOrganising frontend code so it can grow: component boundaries, composition, primitives, compound and headless components, design systems and tokens…30 min
  12. FE·22ReactReact from its mental model up: components, JSX, props, state, events, lists and keys; every core hook; the render–reconcile–commit cycle; and modern…42 min
  13. FE·23AngularAngular as a complete framework: components, templates and control flow, directives and pipes, dependency injection (compared with Spring), services…35 min
  14. FE·24Full-stack FrameworksRendering strategies (CSR, SSR, SSG, ISR, streaming, partial rendering, islands, server components, edge) and the frameworks that implement them…28 min
  15. FE·25State ManagementClassify state before choosing tools: local, server, URL, form, session, global, persistent and derived state. Then Context, reducers, Redux…28 min
  16. FE·26Frontend TestingBuilding confidence in UI code: the testing trophy, unit, component, integration and E2E tests, visual regression, accessibility and performance…31 min
  17. FE·27Frontend PerformanceMeasuring and improving what users feel: Core Web Vitals (LCP, INP, CLS) and FCP/TTFB, long tasks, JavaScript cost, code splitting, tree shaking…30 min
  18. FE·28Frontend SecurityThe browser-side attack surface and its defences: XSS and DOM XSS, CSRF, clickjacking, CSP, CORS, Trusted Types, prototype pollution, open redirects…33 min
  19. FE·29PWAs, Workers & WebAssemblyMaking web apps installable, offline-capable and fast: service worker lifecycle and caching strategies, background sync, push, IndexedDB, the web app…32 min
  20. FE·30Build Tooling & MonoreposHow frontend code becomes deployable assets: package managers and lockfiles, workspaces, ESM versus CommonJS and package exports, bundlers (Vite…27 min
  21. FE·31Frontend DeploymentGetting frontends to users: static hosting and object storage, CDNs, SPA fallback, SSR hosting on Node, serverless and edge runtimes, Docker and…23 min
  22. FE·32Frontend ObservabilitySeeing what happens in users' browsers: error tracking and source maps, real-user monitoring and Web Vitals, structured logs, distributed traces from…26 min
  23. FE·33Frontend ProjectsEight build-it-yourself projects that grow one product, a tiffin-ordering app, from a static page to a monitored production PWA: what each teaches, a…7 min