Call
Call: …

Do AI-built websites have outdated code? What Modern Web Guidance from Google changes

Short answer

Often yes, because models learned from code spanning many years and readily repeat solutions from a decade ago. Modern Web Guidance is a free set of around 200 current guidelines from the Chrome, Edge, Firefox and MDN teams that an AI agent reads before writing code: how to load the main image, how to build forms, menus and dialogs, how to handle accessibility and security. According to Google's tests, agents with these guidelines use current patterns far more often, but the tool improves code quality, it doesn't replace design, content or a human checking the site.

Websites built with AI are quick to produce and usually follow general good practice. An experienced frontend developer will still quickly spot solutions in that code that were fine five or ten years ago, while browsers now offer better, simpler and faster ways. In November 2026 the Chrome, Edge, Firefox and MDN teams released version 1.0 of a tool meant to change that: Modern Web Guidance, current guidelines an AI agent reads before writing code.

Key takeaways

Language models learned from code spanning many years, so they readily repeat old patterns: heavy JavaScript libraries for things the browser does natively, a main image that loads too late, forms that shout about errors before the user has typed anything. Modern Web Guidance is a free set of around 200 guidelines the agent uses while working. According to Google’s tests, this clearly improves the share of tasks done according to current practice. For anyone ordering a website, the key point is that the quality of AI-written code now depends on the developer’s process, not on the mere fact that AI was used.

Where outdated AI code comes from

A model writing a website doesn’t have access to “current knowledge”, only to what it learned from a huge amount of code from recent years. For most of that time certain things were done differently than today, so the most common solutions in the training data are often older than the best ones.

A few typical examples:

  • A dialog or mobile menu built from dozens of lines of JavaScript, even though browsers now have ready-made elements with keyboard and screen reader support.
  • Lazy-loading the main image, which delays what the visitor sees first and hurts the speed score in Google.
  • Form validation from the first second, red borders before anyone has had a chance to type an email.
  • Scroll animations in JavaScript, even though some of them can now be done in CSS alone, more smoothly and lightly.
  • Inserting content into the page in a way that opens the door to attacks, even though safer methods exist.

Until now, developers working with AI had to write and maintain such rules for their agents themselves. Now the teams building the browsers do it.

What Modern Web Guidance is

FeatureDetails
Who’s behind itThe Google Chrome, Microsoft Edge, Mozilla Firefox and MDN teams
Since whenRepository since March 2026, early preview at Google I/O in May, version 1.0 since 10 November 2026 (Chrome announcement)
LicenseFree: code under Apache 2.0, guideline content under CC BY 4.0
ScaleAround 200 guidelines: accessibility, CSS, forms, HTML, JavaScript, performance, security, UI components and behaviours, visual design
Works withClaude Code, Codex, Cursor, GitHub Copilot, Antigravity and other agents
How it worksFor a frontend task, the agent first searches for matching guidelines, reads them and only then writes code. At the end it lists which guidelines it applied
Wheregithub.com/GoogleChrome/modern-web-guidance, updated weekly

An important detail: by default the guidelines skip experimental features and features that work in only one browser. The agent suggests solutions that work in modern versions of all major browsers, with a lightweight fallback for older ones instead of heavy add-ons.

Example guidelines and what the site owner gets

GuidelineWhat it means in practiceWhat the site owner gains
Main image not lazy-loaded and given high priority, other images lazy-loadedThe browser fetches what the visitor sees firstA faster site on phones and a better Core Web Vitals score
Form errors only after interaction, error text not conveyed by colour aloneThe user sees a message only once they’ve entered something wrong, and it’s readable for screen readers tooFewer abandoned forms, better accessibility
Menus and dialogs built from native browser elements (dialog, popover)Less custom JavaScript, correct keyboard and Back button handlingA lighter site, fewer bugs across devices
Scroll animations and snapping in CSSEffects without libraries, smooth on weaker phones tooA nicer site without a speed cost
Breaking up long JavaScript tasksThe page responds to a click immediately, even while something runs in the backgroundA better responsiveness score (INP)
Safe content insertion and passkeysLower risk of injected-code attacks, password-free sign-inSafer forms and dashboards

None of these are revolutionary. A good frontend developer has known them for a long time. The difference is that the AI agent now gets them in current form with every task, instead of guessing from older code.

What the results say

Google publishes test results on its own test apps: the share of tasks done according to current practice without and with the guidelines.

AgentWithout guidelinesWith guidelines
Claude Code (Opus 5.5)57%88%
Codex54%82%
Antigravity58%94%

In the version 1.0 announcement Google also cites company examples: at one, the compliance test score rose from 61 to 94%, and main-image loading priority was fixed in 431 code changes. Another cut the time spent on manual reviews of around 30 campaign pages by 92%.

To be fair, these are the tool makers’ own numbers, on their own tests, without an independent audit. The direction makes sense, though: an agent given an up-to-date cheat sheet uses it more often.

What the tool doesn’t solve

  • Design and content. The guidelines say how to build a form, not what should be in it or how to persuade a visitor to send it.
  • SEO strategy. Fast, correct code helps, but it won’t replace pages that answer customers’ questions.
  • Human review. The code still needs to be reviewed, tested on phones and measured before the site goes live.
  • A full audit of an existing site. The legacy code scan currently covers around 20% of the guidelines.
  • Choosing a platform. Hosting, content editing by the business or a store with payments are separate decisions.

It’s also worth knowing that the tool collects anonymous usage statistics. They can be switched off with a single setting.

Is this the end of WordPress?

Commentary around the release often claims that if AI writes good code, building new sites on WordPress no longer makes sense. That’s an exaggeration. Modern Web Guidance improves frontend code, while WordPress solves other things: content editing, ready-made plugins, a familiar dashboard. A business that wants to click everything itself can still have a good site on it.

What changes is the cost equation. A website written in code from scratch, fast, without plugins and subscriptions, used to be clearly more expensive. AI has lowered the cost of building it, and guidelines like these raise its quality. I cover this in more detail in custom website vs WordPress, Webflow or Framer.

What to check when ordering a website built with AI

  • Mobile speed score. Enter the finished site’s address in PageSpeed Insights and check the mobile results, especially the main image (LCP) and responsiveness (INP).
  • The form. Try submitting it with an error. Is the message clear, does it appear at the right moment, and does it rely on more than colour?
  • The keyboard. Move through the site with the Tab key. Can you see where you are, and can menus and dialogs be opened and closed without a mouse?
  • The developer’s process. Ask which guidelines the AI agent gets, who reviews the code and how performance and accessibility are measured before handover.
  • A handover report. A list of what was applied and measured says more about quality than an assurance that the site is “modern”.

Summary

AI-written code used to be outdated because models learned from older patterns and developers had to keep track of current rules themselves. Modern Web Guidance gives agents an up-to-date, free cheat sheet from the people who build browsers, so the gap between AI code and an experienced frontend developer’s code is narrowing. The need for design, content and a person who checks the result on real phones doesn’t go away. When ordering a website, ask not whether the developer uses AI, but how they ensure the quality of what the AI wrote.

Frequently asked questions

Is a website built with AI worse than one written by hand?

It doesn't have to be. Quality depends on who runs the work: which guidelines the agent gets, who reviews the code, performance and accessibility, and who is responsible for design and content. AI speeds up writing code, and the developer's experience decides whether that code is good.

Is Modern Web Guidance paid?

No. The tool's code is licensed under Apache 2.0 and the guideline content under CC BY 4.0. The tool sends anonymous usage statistics, which can be switched off.

Is the tool useful for an existing website?

Partly. It has a mode that scans existing code for outdated patterns, but for now it covers roughly a fifth of the guidelines. It's a good starting point for a review, not a full audit.

Does this make WordPress pointless?

Not directly. The guidelines improve frontend code, they don't solve content editing, hosting or e-commerce. They do lower the cost of a good website written in code from scratch, so the comparison with platforms looks different today than a few years ago.

Hubert Kaniewski

Available now
Call me
••• ••• •••

On a computer? Scan the code with your phone camera and the call will dial right away.

WhatsApp