# html

> HTML files: valid structure, accessibility, and no inline scripts or event handlers.

HTML files: valid structure, accessibility, and no inline scripts or event handlers.

## Checks

| Check                                                         | Stage    | Level         | What it does                                                                                               |
| ------------------------------------------------------------- | -------- | ------------- | ---------------------------------------------------------------------------------------------------------- |
| [`html/html-validate`](/reference/checks/html/html-validate/) | `commit` | `recommended` | Validates HTML files for nesting, required attributes, text alternatives, and one style for void elements. |
| [`html/scripts`](/reference/checks/html/scripts/)             | `commit` | `all`         | Reports inline scripts, event handler attributes, and executable URLs in HTML files.                       |

## Selected when

gspot selects it in a scope with file extensions `.html`, `.htm`. A configuration that requires it selects it too: [`site`](/reference/configurations/site/).

## Rules for coding agents

| Rule file                                           | Installed when |
| --------------------------------------------------- | -------------- |
| `.gspot/configurations/language/html/rules/HTML.md` | Always         |

## Tools and versions

| Tool          | Version  |
| ------------- | -------- |
| html-validate | `11.6.1` |

## Files gspot writes

gspot writes `.gspot/configurations/language/html/html-validate.json`.
