Code Inspections in HTML
This topic lists all PhpStorm code inspections available in HTML.
|Anchor reference problems|| |
This inspection checks unresolved anchor references in HTML.
|Empty tag|| |
Reports empty tags (like script ) that do not work in some browsers. The validation works in html or jsp file types.
|File reference problems|| |
This inspection checks unresolved file references in HTML.
|Malformed content of <script> tag|| |
This inspection checks that the script tag content is valid XML.
|Missing closing tag|| |
Reports HTML elements without a closing tag. Some coding styles require a closing tag on HTML elements even where this is optional.
|Missing required attribute|| |
Reports XML/HTML tags with missing mandatory attributes. You can specify attribute names that should not be reported.
|Redundant closing tag for HTML element|| |
This inspection spots extra closing tag for the empty elements like IMG or BR.
|Unknown HTML boolean tag attribute|| |
This inspection highlights HTML non-boolean tag attributes without value as invalid, and lets mark such attributes as Custom to avoid highlighting them as invalid.
|Unknown HTML tag|| |
This inspection highlights unknown HTML tags, and lets mark such tags as Custom to avoid highlighting them as unknown in future.
|Unknown HTML tag attribute|| |
This inspection highlights unknown HTML tag attributes as invalid, and lets mark such attributes as Custom to avoid highlighting them as invalid.