Code Inspections in HTML
This topic lists all GoLand code inspections available in HTML.
You can toggle specific inspections or change their severity level on the Editor | Inspections page of the Settings/Preferences Ctrl+Alt+S.
Accessibility
Inspection | Description | Default Severity |
---|---|---|
Missing associated label | Highlights form elements ( | Warning |
Missing required 'alt' attribute | Reports a missing | Warning |
Missing required 'lang' attribute | Reports a missing | Warning |
Missing required 'summary' attribute | Reports a missing | Disabled |
Missing required 'title' attribute | Highlights | Disabled |
Missing required 'title' element | Reports a missing | Warning |
Other inspections
Inspection | Description | Default Severity |
---|---|---|
Anchor reference problems | This inspection checks unresolved anchor references in HTML. | Warning |
Deprecated HTML attribute | Highlights attributes deprecated in HTML5. | Warning |
Deprecated HTML tag | Highlights deprecated HTML tags and provides ability to replace them with CSS or with other tags for some of them. | Warning |
Empty tag | Reports empty tags (like script) that do not work in some browsers. The validation works in html or jsp file types. | Warning |
File reference problems | This inspection checks unresolved file references in HTML. | Warning |
Image size mismatch | This inspection highlights | Warning |
Malformed content of <script> tag | This inspection checks that the script tag content is valid XML. | Error |
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. | No highlighting, only fix |
Missing required attribute | Reports XML/HTML tags with missing mandatory attributes. You can specify attribute names that should not be reported. | Warning |
Non-existent web resource | Highlights links to non-existent web resources. | Disabled |
Presentational HTML tag | Highlights pure presentational HTML tags and provides the ability to replace them with CSS or with other tags. | Disabled |
Redundant closing tag for HTML element | This inspection spots extra closing tag for the empty elements like IMG or BR. | Warning |
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. | Warning |
Unknown HTML tag | This inspection highlights unknown HTML tags, and lets mark such tags as Custom to avoid highlighting them as unknown in future. | Warning |
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. | Warning |