Level 4 · Master Production¶
Goal: ship and maintain HTML and CSS at a professional level — pages that load fast and stay smooth, stylesheets that many people can change for years without fear, sites that work in any language and on paper, metadata that search and social platforms read correctly, and an automated pipeline that catches problems before users do.
Levels 1–3 were about writing correct, accessible HTML and CSS. Level 4 is about everything around it:
- Measure before optimising. Rendering and loading costs are observable — layout counts, first paint, layout shift. Every performance claim in this level comes with a measurement.
- Structure beats cleverness. Layers, tokens, naming conventions and specificity budgets keep a stylesheet predictable as it grows.
- Automate what can be automated, and know what can't. Validators, linters, axe and browser tests catch regressions cheaply; judgement about meaning, clarity and usability stays with people.
Modules¶
- The Rendering Pipeline & CSS Performance — style/layout/paint/composite, layout thrashing measured, containment,
content-visibility - Loading Performance — render-blocking CSS measured, critical CSS, preload, fonts, layout shift
- CSS Architecture at Scale — BEM, utilities, layers as architecture, specificity budgets, Stylelint,
@scope - Design Tokens & Theming Systems — three token tiers, scales, themes, the early-resolution bug
- Logical Properties, Writing Modes & Internationalization — LTR/RTL measured, vertical text, bidi, other scripts
- Metadata, SEO & Structured Data — titles, canonical, robots, Open Graph, JSON-LD, sitemaps
- Print Styles & Other Media —
@media print,@page, breaks, forced colours - Progressive Enhancement & Browser Support — fallbacks,
@supports, Baseline, prefixes - Testing & Auditing HTML and CSS — html-validate, Stylelint, axe, Playwright, visual regression, CI
- Capstone — A Conference Website — everything in one page, with a full quality pipeline
Before you start¶
Complete Level 3. Several lessons use Node.js tools (html-validate, Stylelint, Playwright); install a current LTS version of Node.js. The performance lessons use Chrome or Edge devtools, whose Performance panel exposes the rendering details discussed.
How the examples were checked¶
Performance numbers were measured in headless Chromium 153 on the laptop this course was
written on, using the DevTools protocol's performance metrics and the browser's own
performance entries; absolute times will differ on your machine, so the lessons focus
on ratios and counts. Tool output comes from html-validate 11.16, Stylelint 17.15,
axe-core 4.13 and Playwright 1.63 (Chromium 153 and WebKit 26.6).
What we couldn't run
Search-engine indexing, rich-result eligibility and social-platform previews depend on external services, so lesson 06 describes documented behaviour rather than showing output. The CI workflow in lesson 09 was run locally step by step, not on GitHub's runners. As elsewhere in the course, Firefox couldn't be launched in our test environment.