# html-basic-lint

> html-basic-lint is a paid API for AI agents from intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Lints raw HTML or a URL for common issues including unclosed tags, missing doctype/lang/title/charset/viewport, images without alt, links without href or text, duplicate IDs, inline event handlers, and deprecated tags.

## Facts

- Endpoint: GET https://intel.rallylive.ca/dev/html-validate-basic
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/html-basic-lint-4008ba8b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ojjDwoGl3_Cpk-irkUBT_

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability html-basic-lint-4008ba8b
```

Example prompt: Can you lint this HTML and tell me about any unclosed tags, missing doctype, images without alt text, deprecated tags like font or marquee, and duplicate IDs? Here's the markup: <!DOCTYPE html><html><head><title>Test</title></head><body><img src='logo.png'><center>Hello</center></body></html>

## When to prefer this

Choose this endpoint when you need quick, server-side HTML linting without sending documents to the W3C validator or installing local tooling. It is ideal for automated CI checks, agent-driven code review, or accessibility pre-audits where you want actionable counts and issue lists for common HTML mistakes in a single lightweight call at $0.01 per document.

## Known failure modes

- Invalid or unreachable URL returns an error with no lint results
- Malformed input that is not valid HTML or a URL may return an empty or partial result
- Very large HTML documents may be truncated or time out
- Payment not included or insufficient (x402 flow) results in a 402 Payment Required response
- Network errors fetching a remote URL cause fetch failure response

## How this service works

Basic HTML lint (no external validator): unclosed or mismatched tags, missing doctype, lang, title, meta charset and viewport, images without alt, links without href or text, duplicate ids, inline event handlers, deprecated tags (font, center, marquee), and counts. Give raw HTML or a URL. $0.01 per document.

## Output

Returns a structured list of HTML issues found in the submitted document or URL, including counts and categorized warnings for: unclosed or mismatched tags, missing doctype/lang/title/charset/viewport declarations, images without alt attributes, links missing href or visible text, duplicate IDs, inline event handlers, and usage of deprecated tags (font, center, marquee).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/html-basic-lint-4008ba8b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from intel.rallylive.ca](https://www.zero.xyz/host/intel.rallylive.ca/llms.txt)
