Skip to content

Conformance Checking

Rules that validate HTML against the HTML Living Standard.

RuleDefaultDescription
attr-duplicationerrorDetect duplicate attributes
attr-value-quotes 🔧warningDetect unquoted attribute values
colspan-rowspan-rangeerrorValidate colspan (1-1000) and rowspan (0-65534) ranges
dfn-no-dfn-descendantserrorDisallow dfn nested inside another dfn
deprecated-attrerrorDetect deprecated attributes
deprecated-elementerrorDetect deprecated elements
disallowed-elementoffDetect disallowed elements
doctype 🔧errorRequire DOCTYPE declaration
empty-titleerrorDetect empty title element
end-tagwarningDetect missing end tags
figcaption-positionwarningRequire figcaption as first or last child of figure
form-dup-namewarningDetect duplicate form control names
header-footer-nestingerrorDetect header/footer/main nesting inside header or footer
heading-levelserrorDetect skipped heading levels
id-duplicationerrorDetect duplicate id values
input-attr-applicabilitywarningDetect attributes that don't apply to the input type
invalid-attrerrorDetect attributes not in the spec
link-constraintserrorValidate link element attribute constraints
meta-constraintserrorValidate meta element attribute constraints
no-empty-track-labelwarningDisallow empty label on track elements
no-duplicate-baseerrorDetect multiple base or title elements
no-duplicate-dterrorDetect duplicate dt names in dl
no-duplicate-in-headerrorDetect duplicate charset/viewport/description meta
no-empty-palpable-contentwarningDetect empty palpable content elements
no-implicit-button-typewarningRequire explicit type on button
no-autoplay-mediawarningDetect autoplay without muted on video/audio
no-nested-formserrorDetect nested form elements
no-nested-interactiveerrorDetect interactive content inside a or button
no-non-scalable-viewporterrorDetect user-scalable=no in viewport meta
no-orphaned-end-tagerrorDetect unmatched closing tags
no-tabindex-on-dialogerrorDetect tabindex on dialog elements
obsolete-but-conformingwarningDetect obsolete but conforming features
permitted-contentserrorDetect children not permitted by the spec
picture-structureerrorValidate picture element structure
placeholder-label-optionwarningDetect missing placeholder option in required select
require-datetimeerrorRequire datetime attribute on time element
require-meta-charsetoffRequire meta charset declaration
required-attrerrorDetect missing required attributes
required-elementerrorDetect missing required child elements
script-typeerrorValidate script type attribute values
src-not-emptyerrorDetect empty src or href attributes
summary-first-childerrorRequire summary as first child of details
th-content-restrictionserrorDetect disallowed elements inside th
unique-mainerrorRequire at most one visible main element
valid-attr-valueerrorValidate enumerated attribute values
valid-autocompletewarningValidate autocomplete attribute values
valid-iderrorRequire valid id values (non-empty, no whitespace)
valid-relerrorValidate rel attribute values
track-has-srclangerrorRequire srclang on subtitles track
void-contenterrorDetect content inside void elements
no-duplicate-trackerrorDetect duplicate track elements with same kind/srclang/label
no-multiple-default-trackerrorDetect multiple default tracks in same category
base-before-urlswarningRequire base href before URL-bearing elements
address-content-modelerrorDetect heading/sectioning/header/footer inside address
link-rel-or-itemproperrorRequire rel or itemprop on link
base-has-href-or-targeterrorRequire href or target on base

Released under the MIT License.