Back to Blog

Beginner’s field guide to modern web engineering

Modern Web Guidance
Build for the modern web

Build fast, accessible websites that work in every modern browser. This guide connects the five things you need to know (Modern Web Guidance, Baseline browser support, Core Web Vitals, WCAG 2.2 accessibility and government design systems) and gives you a hands-on tool for each.

Expert-vetted skills (v1.0)

200+ guides

Jointly stewarded by Chrome, Firefox, Edge and MDN

Universal browser maturity

30 months

Window from Newly available to Widely available

Real-world web speed (Aug 2026)

55.6%

Global sites passing all three Core Web Vitals

01 — The framework

AI coding agents default to old habits unless given live platform context

If you ask an AI coding assistant to build a pop-up menu or validate a form, it draws from huge training datasets packed with code written years ago. As a result, unguided models regularly invent heavy JavaScript, unnecessary polyfills (patch scripts for missing features) or extra third-party libraries for tasks that modern browsers now handle natively in a few lines of HTML and CSS.

Introduced in preview at Google I/O in May 2026 and released as version 1.0 in November 2026, Modern Web Guidance closes that knowledge gap. Stewarded by the Google Chrome, Microsoft Edge, Mozilla Firefox and MDN teams, it feeds targeted guidance into coding agents such as Claude Code, GitHub Copilot CLI, OpenAI Codex and Google Antigravity, or any agent that supports skills.

Under the hood, the package holds over 200 expert-reviewed guides, covering 269 web platform features and 206 real-world use cases across HTML, CSS, JavaScript, accessibility, forms, security and performance. The guides are tested with Playwright-graded evaluations that compare coding agents with and without the guidance.

1

Skill activation

When you ask an agent to build a component or audit performance, it activates the skill before writing code.

2

Offline local search

A local embedding model and BM25 search engine match your query to the right guide offline, with no API calls or keys.

3

Guide fetch & runtime check

The agent retrieves the guide's patterns and gotchas. Paired with Chrome DevTools for agents, it can then check the result in a live browser.

Interactive comparison

Compare unguided AI code against Modern Web Guidance

Generated code snippet Native browser API

Why this matters for beginners

Runtime verification note

02 — Browser compatibility

Baseline replaces guesswork with a shared interoperability line

For years, web developers treated Internet Explorer 11 as an informal minimum bar: if a feature worked in IE11, you could ship it safely. Once Internet Explorer retired and modern browsers moved to rapid monthly releases, tracking exact version numbers across devices became exhausting.

Defined by the W3C WebDX Community Group, whose members include the major browser makers, Baseline draws a clear, vendor-neutral line across the core browsers: Chrome (desktop and Android), Edge, Firefox (desktop and Android) and Safari (macOS and iOS). Those browsers run on three engines: Blink, Gecko and WebKit.

Every web feature moves through three straightforward stages: Limited availability (missing in at least one core browser), Newly available (supported in every core browser) and Widely available (supported across all core engines for at least 30 months—about two and a half years—making polyfills unnecessary for almost all sites).

The 30-month lifecycle in practice

How Declarative Shadow DOM graduated

Stage 1: Limited availability

Not yet supported in every core browser. Developers rely on feature checks or JavaScript fallbacks.

Stage 2: Newly available — Feb 2024

Every core browser supports shadowrootmode, landing in the Baseline 2024 target.

Stage 3: Widely available — Aug 2026

Exactly 30 months later, it becomes safe to use universally without JavaScript polyfills or FOUC.

Interactive feature explorer

Explore Baseline platform features & fallback rules

Feature breakdown

What old hack it replaces

Advice for your selected project target

Where developers see Baseline data in everyday tools

The open-source web-features data set behind Baseline powers status information in MDN Web Docs, webstatus.dev, the Lighthouse Baseline Features audit (also in Chrome DevTools), ESLint's use-baseline rule, Stylelint, Browserslist (browserslist-config-baseline) and Modern Web Guidance itself.

03 — Performance engineering

Core Web Vitals measure real-user experience at the 75th percentile

Think of a web page like a high-street shop opening for a customer. Largest Contentful Paint (LCP) is how fast the main window display becomes ready—targeting 2.5 seconds or less. Interaction to Next Paint (INP), which replaced First Input Delay on 12 March 2024, measures how quickly staff respond every time a customer taps a filter, opens a menu or clicks checkout—targeting 200 milliseconds or less. Cumulative Layout Shift (CLS) checks whether the floor plan stays still while the customer walks to the till—targeting a score of 0.1 or less.

Crucially, Google grades pages using real-world field data from the Chrome UX Report (CrUX) at the 75th percentile—not an average and not a fast developer laptop score. At least three quarters of real visits must meet every threshold separately; in Search Console, if CLS is Poor, the entire group of similar pages fails even when LCP and INP are green.

Field telemetry benchmarks (2026)

Real-world Core Web Vitals pass rates

In the August 2026 Chrome UX Report, 55.6% of origins passed all three metrics. LCP is still the hardest to pass, at 68.1% of origins. By October 2026 the overall pass rate had reached 56.3%.

Chrome UX Report pass rates. August 2026: all three metrics 55.6%, good LCP 68.1%, good CLS 81.5%, good INP 85.3%. October 2026: all three metrics 56.3%.

Source: Chrome UX Report release notes (August and October 2026 data)

Optimisation order: TTFB → LCP → INP → CLS

The practical engineering workflow

Metric Good target Most effective fix
LCP ≤ 2.5 s Put the hero image in the HTML as an <img> with fetchpriority="high", never lazy-load it and cut slow server response (TTFB over 0.8 s).
INP ≤ 200 ms Break long JS tasks (> 50 ms) with scheduler.yield(), defer third-party tags and trim experiment callbacks.
CLS ≤ 0.1 Set explicit width/height or aspect-ratio, use font-display: optional and reserve space for banners.

Lab tests on a fast laptop often look far better than real visitors' experience at the 75th percentile, which is why testing on real mid-range phones matters.

Interactive performance lab

Simulate how engineering choices move the 75th percentile

URL Group Status: Good

Simulated 75th-percentile field metrics

Largest Contentful Paint (LCP)
Good threshold: ≤ 2.5 s
2.2 s
Interaction to Next Paint (INP)
Good threshold: ≤ 200 ms
165 ms
Cumulative Layout Shift (CLS)
Good threshold: ≤ 0.10
0.04

04 — Inclusive design

WCAG 2.2 closes critical gaps for keyboard, motor and cognitive users

Ratified as a formal W3C Recommendation on 5 October 2023, WCAG 2.2 is the current global standard for accessible websites. Organised around four core principles—Perceivable, Operable, Understandable and Robust (POUR)—it comprises 86 testable success criteria across Levels A, AA and AAA.

WCAG 2.2 introduces nine new criteria aimed at people with cognitive and learning disabilities, motor impairments and sighted keyboard users, while retiring one older rule (4.1.1 Parsing, because modern browsers handle minor HTML syntax quirks consistently). Because WCAG 2.2 is backwards compatible, building to WCAG 2.2 Level AA (55 criteria across Levels A and AA) automatically satisfies laws that still reference WCAG 2.1 AA (such as US ADA Title II and EU EN 301 549) or WCAG 2.0 AA (US Section 508).

Foundational HTML habits

What automated tools cannot replace

Most new WCAG 2.2 criteria require human judgement—for instance, checking whether help links appear consistently or whether a drag action has a click alternative. Start with semantic markup:

  • Use <button> for actions rather than clickable <div> elements.
  • Provide <nav> and <main> landmarks with one <h1> and ordered headings.
  • Test the whole flow with Tab, Shift+Tab, Escape and a screen reader.

WCAG 2.2 directory

Explore all 9 new success criteria

Hands-on demo: SC 2.5.8 (Level AA)

Target Size (Minimum) tester

Pointer targets must measure at least 24 × 24 CSS pixels (or have equivalent spacing). Larger targets, such as the 44 × 44 px required at Level AAA (2.5.5), help touch and motor-impaired users avoid mis-taps.

Try clicking the small button (0 clicks)
Passes 2.5.8 (24 × 24 px)

Hands-on demo: SC 2.4.11 (Level AA)

Focus Not Obscured simulator

Sticky cookie banners or floating bars must never completely hide a keyboard-focused control. Toggle safe scroll padding below and move focus to compare.

Sticky cookie preferences bar Covers focused button

05 — Shared public infrastructure

Government design systems turn research and compliance into reusable building blocks

Public-sector websites serve every citizen regardless of device, bandwidth or ability. Rather than forcing every department to design buttons, forms and error summaries from scratch, modern governments publish shared design systems built from design tokens (named units of colour, spacing and typography), reusable components, utility classes and user-tested patterns.

United States

U.S. Web Design System (USWDS)

Managed by the General Services Administration (GSA). Federal executive-branch agencies are directed to use it under the 21st Century IDEA Act and OMB Memorandum M-23-22.

Five USWDS design principles

  • Start with real user needs
  • Earn trust
  • Embrace accessibility (USWDS components target WCAG 2.1 AA)
  • Promote continuity across agencies and devices
  • Listen and iterate continuously

Includes 40+ out-of-the-box accessible components & eight 21st Century IDEA requirements (accessible, consistent, authoritative, searchable, secure, user-centred, customisable and mobile-friendly).

United Kingdom

GOV.UK Design System

Built by the Government Digital Service (GDS), GOV.UK is famous for documenting real user research directly on each component page—clearly stating when to use a component and when not to use it so it reads like advice from an experienced colleague.

Three community principles

  • Start with what exists: Reuse proven components and iterate from evidence.
  • Contribute back and help others: Build scalable patterns and give kind feedback.
  • Prioritise openness and honesty: Share work in progress early, including what failed.

GOV.UK Frontend v6.6.0 (October 2026) continues refining accessible form patterns such as Character count.

Interactive design-system lesson

Inspect all five states every component needs

Hover states usually get designed; focus states are often forgotten. Select a component and step through every state.

State specification

06 — Putting it into practice

Pre-launch web standards checklist

Interactive readiness tracker

0 of 8 checks completed