Validation

The site_validate tool checks the working copy of a site and for each problem gives the file, line, code fragment and a hint on how to fix it. You also get a short version of this check after every publication.

Problems have two levels:

  • Name
    Error
    Type
    fix before publishing
    Description

    Something is broken for visitors or breaks the server’s rules, for example a dead link, a missing file or an image without a description.

  • Name
    Warning
    Type
    usually worth fixing
    Description

    It concerns accessibility, search ranking or speed. The site works, but could be better.

Publishing is never blocked by the validation result. The recommended course: fix all errors, then the warnings that matter, and publish.

Errors

CodeWhat it meansHow to fix
no-indexThe site has no index.html file, so the home page shows a 404 error.Create index.html.
missing-titleThe page has no <title> tag.Add a page title.
missing-langThe <html> tag has no lang attribute.Add a lang matching the site language, e.g. <html lang="en">.
missing-viewportNo viewport meta tag, so phones show a shrunken desktop version.Add <meta name="viewport" content="width=device-width, initial-scale=1">.
img-no-altAn image without an alt attribute: screen readers read out the file name.Add a description; an empty alt="" only for a decorative image.
duplicate-idThe same id used more than once.Give elements unique identifiers.
broken-linkA link leads to a page that does not exist.Create the missing page or fix the link.
missing-fileThe page loads a file (image, CSS, JS, font) that does not exist.Add the file or fix the path.
mixed-contentA resource loaded over plain http://, which the browser will block on an HTTPS site.Change the address to https:// or add the file to the site.

Warnings

CodeWhat it meansHow to fix
title-lengthThe title is shorter than 10 or longer than 60 characters.Adjust the title length.
lang-mismatchThe lang attribute differs from the site language in the settings.Use the site language, or change the site language in site_update_settings if this subpage is meant to be in another one.
zoom-disabledThe viewport blocks pinch zoom, which low-vision people rely on.Remove user-scalable=no and maximum-scale.
missing-descriptionNo meta description.Add a description of 50–160 characters.
description-lengthThe description is shorter than 50 or longer than 160 characters.Adjust the length.
missing-open-graphOpen Graph tags (og:title, og:description, og:image) are missing, so links shared on social networks and messengers have no preview.Add the missing tags.
og-image-relativeThe og:image address is relative, and social networks ignore it.Use a full https://… address.
missing-h1The page has no <h1> heading.Add one <h1>.
multiple-h1The page has several <h1> headings.Keep one.
img-no-sizeImages without width and height, so the page “jumps” while loading.Add dimensions (fragments from asset_* have them).
link-no-textA link without text: a screen reader will read only “link”.Add text or an aria-label.
placeholder-linkA link goes nowhere (href="#" or empty).Put in a real address.
broken-anchorA link to an #anchor that is not on the page.Fix the id or the link.
external-dependencyThe page depends on another server (for example a CDN). Exception: Google Fonts.Put the resource in the site files.
duplicate-titleThe same title on several pages.Give the pages different titles.
duplicate-descriptionThe same description on several pages.Write separate descriptions.
heavy-imageAn image larger than 500 KB.Add it again through asset_upload or asset_fetch (WebP, maxWidth about 1200, responsive).
heavy-fileAn HTML, CSS or JS file larger than 200 KB.Split or slim down the file.
html-syntaxAn HTML syntax problem (the first few are reported).Fix the indicated fragment.

The free-plan check

Sites on the free plan are checked for credential theft and malicious code before they are published. The check is automatic (rules, no AI model) and covers .html and .js files. Its findings show up in site_validate as errors, and site_publish refuses to publish until you fix them. Paid plans are not checked.

CodeWhat it meansHow to fix it
password-fieldA password field. A static site cannot check passwords, so such a field is normally used to steal them.Remove the field. If visitors must sign in, link to the real service.
foreign-formA form (or formaction) that sends data to another site.Remove the form, or use a mailto: link.
external-scriptA script loaded from another domain. The free plan allows only scripts that are files of the site itself.Save the script in js/, or remove it.
redirectA redirect to another site (meta refresh or location in JavaScript).Replace it with an ordinary link.
brand-impersonationA well-known brand (bank, courier, shop) together with sign-in fields or a bait phrase such as “verify your account”.Remove the brand name, or the fields and the phrase. A brand name alone in the text is fine.
evaleval(...), new Function(...) or writing decoded code into the document.Write the code plainly.
obfuscated-jsObfuscated JavaScript.Use readable code.

The message gives the file, the line and the fix, so the assistant can usually correct the site itself. If you think a refusal is a mistake, write to the operator (Contact).

Ask the assistant: “Check the site and fix all errors”, or “Check the site and show me the warnings before you change anything”.

Was this page helpful?