Code Inspections in HTML
This topic lists all PhpStorm code inspections available in HTML.
You can toggle specific inspections or change their severity level on the Editor | Inspections page of the IDE settings CtrlAlt0S.
Inspection | Description | Default Severity |
---|---|---|
Reports a form element ( | | |
Reports a missing | | |
Reports a missing | | |
Reports a missing | ||
Reports a missing title attribute | ||
Reports a missing | |
Inspection | Description | Default Severity |
---|---|---|
Reports empty tags that do not work in some browsers. Example:
After the quick-fix is applied:
| | |
Reports an HTML non-boolean attribute without a value. Suggests configuring attributes that should not be reported. | | |
Reports contents of Example:
After the quick-fix is applied:
| | |
Reports a | | |
Reports an HTML element without a closing tag. Some coding styles require that HTML elements have closing tags even where this is optional. Example:
After the quick-fix is applied:
| | |
Reports a missing mandatory attribute in an XML/HTML tag. Suggests configuring attributes that should not be reported. | | |
Reports an obsolete HTML5 attribute. | | |
Reports an obsolete HTML5 tag. Suggests replacing the obsolete tag with a CSS or another tag. | | |
Reports a presentational HTML tag. Suggests replacing the presentational tag with a CSS or another tag. | ||
Reports redundant closing tags on empty elements, for example, Example:
After the quick-fix is applied:
| | |
Reports an unknown HTML attribute. Suggests configuring attributes that should not be reported. | | |
Reports an unknown HTML tag. Suggests configuring tags that should not be reported. | | |
Reports an unresolved file in a link. | | |
Reports an unresolved last part of an URL after the | | |
Reports an unresolved web link. Works by making network requests in the background. | ||
Wrong attribute value | Reports an incorrect HTML attribute value. | |
Thanks for your feedback!