Skip to main content

Rules

Conformance checking

Rule IDDescription
attr-duplicationWarns that attributes were duplicated in one element. Capital letters and lower-case letters are not distinguished.
deprecated-attrWarns when there is an attribute defined as deprecated or obsolete.
deprecated-elementWarns when there is an element defined as deprecated or obsolete or non-standard.
disallowed-elementWarns if specified elements appear on a document or an element.
doctypeWarns when doesn't including DOCTYPE.
heading-levelsWarns for skipped heading levels
id-duplicationWarns that id attribute value were duplicated in one document.
invalid-attrWarn if an attribute is a non-existent attribute or an invalid type value due to the specifications (or the custom rule).
no-duplicate-dtNo duplicate names in <dl>
no-empty-palpable-contentWarn if there is an empty palpable content element.
no-orphaned-end-tagWarns when an end tag appears without a corresponding start tag, which constitutes an inner parse error in HTML Standard.
permitted-contentsWarn if a child element has a not allowed element or text node.
placeholder-label-optionChecking whether the select element needs the placeholder label option.
require-datetimeWarn to need the datetime attribute if the time element has invalid content.
required-attrWarns if specified attributes or required attribute on specs are not appeared on an element.
required-elementRequired elements

Accessibility

Rule IDDescription
label-has-controlWarns if the label element has no control.
landmark-rolesWhether banner, main, complementary and contentinfo are top-level landmarks. Whether a specific landmark roll has unique label when used multiple times on a page
neighbor-popoversWarns when popover triggers and their corresponding targets are not adjacent
no-ambiguous-navigable-target-namesPrevents typographical errors in links and more that could inadvertently replace special navigational keywords (_blank, _self, _parent, _top) with invalid target names, ensuring navigations behave as intended.
no-consecutive-brWarns against the use of consecutive <br> tags
no-refer-to-non-existent-idCheck whether the ID or the list of ID specified to for, form, aria-*, and more, or a fragment in a hyperlink are referencing it that existed in the same document.
require-accessible-nameWarn if the element has no accessible name.
required-h1Warn if there is no h1 element in the document.
table-row-column-alignmentChecks for consistency in the defined number of rows and columns.
use-listPrompt to use list element when a bullet character is at the start of a text node.
wai-ariaWarn if the role attribute and aria-* attributes don't set in accordance with specs that are WAI-ARIA and ARIA in HTML.

Naming Convention

Rule IDDescription
class-namingWarn if the class name does not conform to the specified rules.

Maintainability

Rule IDDescription
no-hard-code-idWarn it hard-coded the value of the id attribute when the element is a fragment.
no-use-event-handler-attrWarn when specifying the event handler attribute.

Style

Rule IDDescription
attr-value-quotesWarns if the attribute value is not quoted.
case-sensitive-attr-nameWarns that the attribute name is not in one of uppercase or lowercase letters.
case-sensitive-tag-nameWarns that the tag name is not in one of uppercase or lowercase letters.
character-referenceWarns when unauthorized illegal characters are not escaped with character reference in the text node or attribute value.
end-tagWarn if there is not an end tag.
ineffective-attrWarn that if the attribute specified cannot affect (in other words, mean-less) the element.
no-boolean-attr-valueWarn when it specified any value to the boolean attribute.
no-default-valueWarn when it specifies the default value to the attribute.

Removed rules

Rule IDDescriptionDrop
attr-equal-space-afterSpaces after the equal of attributeSince v3.0
attr-equal-space-beforeSpaces before the equal of attributeSince v3.0
attr-spacingSpaces between attributesSince v3.0
indentationIndentationSince v3.0