Skip to content

Practical guide / Development and agents

Modern Web Guidance 1.0 helps agents write modern web code

AI coding agents can produce working websites while relying on outdated browser techniques. Modern Web Guidance aims to improve their choices by providing current information about web platform capabilities, but the generated code still needs proper review.

Contrast 3DPublished 5 min read

3D still life of white ceramic blocks: old pieces set aside and new ones aligned on a violet glass rail.
Conceptual illustration generated with AI. Not a screenshot or a photograph.

Modern Web Guidance 1.0 can help AI coding agents avoid outdated JavaScript, CSS and HTML techniques by giving them instructions on modern browser capabilities and compatibility. Developers can add it to their projects and use its scanning tools to identify code worth updating. However, people still need to define browser support requirements, approve changes and validate accessibility and performance.

The Chrome team announced the stable 1.0 release on 10 November 2026, according to Chrome for Developers. Chrome, Firefox and Edge are involved in the initiative, which is intended to help agents make better-informed decisions when generating web code.

For development teams already using AI assistants, the appeal is straightforward: give the agent more relevant technical guidance before it chooses an implementation.

Why coding agents still generate outdated web code

An AI agent may complete a development task using an approach that works but is no longer the most appropriate option.

For example, it might generate JavaScript for an interaction that modern CSS can handle or produce unnecessarily complicated HTML structures.

The code may function correctly while still adding complexity to maintenance.

Outdated patterns can also introduce dependencies or compatibility workarounds that the intended browsers no longer require.

Modern Web Guidance aims to address this by giving coding agents information about current web platform features.

As explained by Chrome for Developers, the project combines development guidance with browser compatibility data.

That does not mean older techniques should always be removed.

Some remain necessary when a website must support environments that lack newer features.

The appropriate choice depends on the project's actual requirements rather than a blanket preference for the newest available API.

What Modern Web Guidance 1.0 contains

Modern Web Guidance is distributed as a collection of skills, meaning instructions that an AI agent can load and apply while working.

The package brings together recommendations for web development and information about feature support.

According to the official GitHub repository and AI Weekly, it covers approximately 250 web platform features and 203 use cases.

The feature coverage is divided as follows:

TechnologyFeatures covered
CSS140
JavaScript74
HTML36
Total250

These figures describe the scope of the guidance. They do not establish how reliably an agent will apply it in a particular project.

Chrome, Firefox and Edge are participating, making cross-browser compatibility a central consideration.

The project is not entirely new. A preliminary release was already available in July 2026, as covered by LogRocket.

The November announcement marks the stable 1.0 release, rather than the first appearance of the guidance.

How to add Modern Web Guidance to a project

The installation command is provided in the Chrome for Developers announcement and the GitHub repository:

npx modern-web-guidance@latest install

This installs the guidance for use within the agent's development environment.

Before adopting it, establish which browsers and versions your project must support.

An internal business application operating within a controlled environment may have different requirements from an ecommerce website serving a broad range of devices.

Your existing development conventions should also remain clear.

If your project already includes agent instruction files, the guidance can complement the approach described in our article on AGENTS.md and instructions for coding agents.

Project-specific instructions define how work should be organised, while Modern Web Guidance provides general information about modern browser capabilities.

Keeping those responsibilities distinct makes generated changes easier to review.

Use legacy-scan to identify code worth modernising

Modern Web Guidance includes a command called legacy-scan, designed to examine a project for older implementation patterns.

The feature is documented in the GitHub repository and described by AI Weekly.

A sensible approach is to run the scan as a reporting exercise first.

Review the findings, identify the affected code and consider each proposed change before modifying the application.

Not every older pattern needs replacing.

Some may provide compatibility that the project still requires, while others may be unnecessarily complicated given the browsers being supported.

The distinction matters more than the age of the code.

Our article on modern web development in 2026 without unnecessary polyfills explores the same practical consideration.

What developers still need to review themselves

Giving an agent better instructions does not remove the need to test its output.

CriterionWhat to check
Browser supportWhether proposed features work in the browser versions the project must support.
CSSWhether layouts and responsive behaviour remain correct.
JavaScriptWhether interactions still work without introducing regressions.
HTMLWhether elements have appropriate semantics and structure.
AccessibilityWhether keyboard navigation and assistive technologies can use the interface.
PerformanceWhether loading and interaction performance remain acceptable.
Legacy codeWhether each replacement provides a useful improvement without removing necessary compatibility.
MaintainabilityWhether changes follow the project's conventions and dependency requirements.

Accessibility is particularly important.

An interface may appear correct visually while remaining difficult to operate through a keyboard or assistive technology.

Likewise, performance cannot be established from code inspection alone.

Developers need to observe how the application behaves under representative conditions.

Automated tests are useful, but important user journeys should also be checked manually.

Modern Web Guidance can help an agent choose suitable platform features. It cannot independently confirm that the finished website meets every requirement.

Introduce the guidance without rebuilding everything

The guidance can be adopted gradually.

A development team might begin by making it available for new coding tasks, then use legacy-scan during planned maintenance work.

This avoids turning a tool update into an unnecessary rewrite of the entire application.

It is also worth distinguishing browser platform guidance from framework-specific optimisation.

For instance, the techniques discussed in our article on reducing JavaScript in Next.js with coding agents address particular application performance concerns.

Modern Web Guidance focuses on helping agents choose current web platform capabilities.

Both approaches can be useful, but they solve different problems.

What to decide this week

This week, establish your browser support requirements, install Modern Web Guidance in a test environment and run legacy-scan to identify potential improvements. Review proposed changes before accepting them, with a developer remaining responsible for accessibility and performance validation.

If you are modernising a website or introducing AI agents into your development workflow, tell us which part of your project needs reviewing and Contrast 3D can help assess the implementation.

Sources

Checked on November 15, 2026

All articles