Skip to content
HALOWERK

Codewerk

html nu validate

Runs the Nu Html Checker (the checker behind validator.w3.org/nu; vnu.jar 26.10.12, MIT, SHA-256 verified) as a local child process per request with a 1.2 GB address-space limit, 8 s CPU and 7.5 s wall-clock limit, one run at a time. Input is document text (up to 240 000 characters) or a public URL that is fetched first (robots.txt respected); the public W3C service is never used. Returns every message with type (error, warning, info), line/column range and extract, plus counts. Options:.

POST https://code.halowerk.com/v1/html-nu-validate

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
htmlstringNoDocument to validate (HTML, or CSS/SVG with mode).
urlstringNoAlternative: public URL whose content is fetched and validated locally.
modestringNoParser: html (default), css or svg.
errors_onlybooleanNoReport errors only.
max_messagesintegerNo
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "html": {
      "type": "string",
      "minLength": 1,
      "maxLength": 240000,
      "description": "Document to validate (HTML, or CSS/SVG with mode)."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "maxLength": 2000,
      "description": "Alternative: public URL whose content is fetched and validated locally."
    },
    "mode": {
      "type": "string",
      "enum": [
        "html",
        "css",
        "svg"
      ],
      "default": "html",
      "description": "Parser: html (default), css or svg."
    },
    "errors_only": {
      "type": "boolean",
      "default": false,
      "description": "Report errors only."
    },
    "max_messages": {
      "type": "integer",
      "minimum": 1,
      "maximum": 2000,
      "default": 500
    }
  }
}

Open original schema

Published input example

{
  "html": "<!DOCTYPE html><html lang=\"en\"><head><title>x</title></head><body><img src=\"a.png\"></body></html>"
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.

More endpoints in this hub

All endpoints in this hub โ†’