Code Inspections in HTML
This topic lists all JetBrains Rider code inspections available in HTML.
You can toggle specific inspections or change their severity level on the Editor | Inspection Settings | Inspection Severity | Other Languages page of the IDE settings Ctrl+Alt+S.
Accessibility
Inspection | Description | Default Severity |
---|---|---|
Missing associated label | Reports a form element ( | |
Missing required 'alt' attribute | Reports a missing | |
Missing required 'lang' attribute | Reports a missing | |
Missing required 'summary' attribute | Reports a missing | |
Missing required 'title' attribute | Reports a missing title attribute | |
Missing required 'title' element | Reports a missing |
Other inspections
Inspection | Description | Default Severity |
---|---|---|
Empty tag | Reports an empty tag (such as | |
Incorrect boolean attribute | Reports an HTML non-boolean attribute without a value. Suggests configuring attributes that should not be reported. | |
Malformed content of 'script' tag | Reports invalid XML contents of a | |
Mismatched image size | Reports a | |
Missing closing tag | Reports an HTML element without a closing tag. Some coding styles require that HTML elements have closing tags even where this is optional. | No highlighting, only fix |
Missing required attribute | Reports a missing mandatory attribute in an XML/HTML tag. Suggests configuring attributes that should not be reported. | |
Obsolete attribute | Reports an obsolete HTML5 attribute. | |
Obsolete tag | Reports an obsolete HTML5 tag. Suggests replacing the obsolete tag with a CSS or another tag. | |
Presentational tag | Reports a presentational HTML tag. Suggests replacing the presentational tag with a CSS or another tag. | |
Redundant closing tag | Reports a redundant closing tag for an empty element, for example, | |
Unknown attribute | Reports an unknown HTML attribute. Suggests configuring attributes that should not be reported. | |
Unknown tag | Reports an unknown HTML tag. Suggests configuring tags that should not be reported. | |
Unresolved file in a link | Reports an unresolved file in a link. | |
Unresolved fragment in a link | Reports an unresolved last part of an URL after the | |
Unresolved web link | Reports an unresolved web link. Works by making network requests in the background. |