Formatter Validator Minifier Escape / Unescape JSON ↔ String JSON ↔ YAML JSON → CSV NDJSON / JSON Lines JSON → Types JSON ↔ XML JSON Diff JSON Patch Canonicalize (RFC 8785) Schema Validator Schema Generator JSONPath Tester JWT Decoder JSON Errors Schemas More Tools
JSONTools / Schema registry / .htmlhintrc
Schema registry

.htmlhintrc

HTML Hint configuration file

.htmlhintrc

Check your file against this schema

Opens the validator with this schema already loaded. Paste your .htmlhintrc and it validates in your browser — nothing is uploaded.

Validate a .htmlhintrc → View raw schema

Fields

Generated directly from the schema, following local $refs, to two levels of nesting.

Field Type Description
alt-requirebooleanAlt of img must be present and alt of area[href] and input[type=image] must be set value.
default: false
attr-lowercaseanyOfAttribute name must be lowercase.
default: false
attr-no-duplicationbooleanThe same attribute can't be specified twice.
default: false
attr-sortedbooleanAttributes should be sorted in an order.
default: false
attr-unsafe-charsbooleanAttribute value cannot use unsafe chars.
default: false
attr-value-double-quotesbooleanAttribute value must be closed by double quotes.
default: false
attr-value-no-duplicationanyOfClass attributes should not contain duplicate values. Other attributes can be checked via configuration.
default: false
attr-value-not-emptybooleanAttribute must set value.
default: false
attr-value-single-quotesbooleanAttribute value must be closed by single quotes.
default: false
attr-whitespacebooleanNo leading or trailing spaces inside attribute values.
default: false
button-type-requirebooleanThe type attribute of a button element must be present with a valid value: button, submit, or reset.
default: false
doctype-firstbooleanDoctype must be first.
default: false
doctype-html5booleanDoctype must be HTML5.
default: false
frame-title-requirebooleanA frame or iframe element must have an accessible name.
default: false
form-method-requirebooleanThe method attribute of a form element must be present.
default: false
h1-requirebooleanA H1 heading element is required in HTML documents.
default: false
head-script-disabledanyOfThe script tag cannot be used in head.
default: false
href-abs-or-relanyOfHref must be absolute or relative.
default: false
html-lang-requirebooleanThe lang attribute of an <html> element must be present and should be valid.
default: false
id-class-ad-disabledbooleanId and class cannot use ad keyword, it will be blocked by adblock software.
default: false
id-class-valueanyOfId and class value must meet some rules: underline, dash, hump.
default: false
id-uniquebooleanID attributes must be unique in the document.
default: false
inline-script-disabledbooleanInline script cannot be used.
default: false
inline-style-disabledbooleanInline style cannot be used.
default: false
link-rel-canonical-requirebooleanA link element with rel="canonical" is required within the <head> tag.
default: false
main-requirebooleanA main element is required within the <body> tag.
default: false
meta-charset-requirebooleanA meta charset is required within the <head> tag.
default: false
meta-description-requirebooleanA meta description is required within the <head> tag.
default: false
meta-viewport-requirebooleanA meta viewport is required within the <head> tag.
default: false
space-tab-mixed-disabledanyOfSpaces and tabs cannot be mixed in front of line.
default: false
spec-char-escapebooleanSpecial characters must be escaped.
default: false
src-not-emptybooleanSrc of img(script,link) must set value. Empty of src will visit current page twice.
default: false
style-disabledbooleanStyle tag cannot be used.
default: false
tag-no-obsoletebooleanDisallows the use of obsolete HTML tags.
default: false
tag-pairbooleanTag must be paired.
default: false
tag-self-closebooleanThe empty tag must be self-closed.
default: false
tagname-lowercasebooleanTagname must be lowercase.
default: false
tagname-specialcharsbooleanTagname must not contain any characters beside letters, numbers, ”-”, ”:” or ”_”.
default: false
tags-checkbooleanCheck if particular tags are self-closing or must include or exclude particular tags.
default: false
title-requirebooleantitle must be present in head tag.
default: false

What we found in this schema

Specification sections for the keywords in this schema

Keyword Document Section
$idJSON Schema Core, draft 2020-12§8.2.1 — The "$id" Keyword
$schemaJSON Schema Core, draft 2020-12§8.1.1 — "$schema"
anyOfJSON Schema Core, draft 2020-12§10.2.1.2 — "anyOf"
constJSON Schema Validation, draft 2020-12§6.1.3 — "const"
defaultJSON Schema Validation, draft 2020-12§9.2 — "default"
descriptionJSON Schema Validation, draft 2020-12§9.1 — "title" and "description"
enumJSON Schema Validation, draft 2020-12§6.1.2 — "enum"
itemsJSON Schema Core, draft 2020-12§10.3.1.2 — "items"
propertiesJSON Schema Core, draft 2020-12§10.3.2.1 — "properties"
typeJSON Schema Validation, draft 2020-12§6.1.1 — "type"

Documents

Attribution

This schema comes from SchemaStore, distributed under the Apache License 2.0. Copyright 2015–present Mads Kristensen and contributors. View the original file. The field table and audit on this page are generated by JSONTools.tools; the schema itself is unmodified.

← All schemas