The list of supported HTML and SVG elements is growing quite large, and it's very easy to miss a typo.

This rule checks each type selector to make sure that it is a known HTML or SVG element.

Noncompliant Code Example

blabla { /* Noncompliant: 'blabla' is not a known HTML or SVG element */
  color: red;
}

Compliant Solution

span {
  color: red;
}

List of Known HTML Elements

Extracted from the HTML Living Standard.

[[allHtmlElements]]

List of Known SVG Elements

Extracted from the W3C SVG Specifications.

[[allSvgElements]]

Exceptions

stylelint Related Rules