Inspectopedia 2025.2 Help

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.

Example:

<html> <body> <p>Behold! </body> </html>

After the quick-fix is applied:

<html> <body> <p>Behold!</p> </body> </html>

Locating this inspection

By ID

Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.

HtmlMissingClosingTag
Via Settings dialog

Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.

Settings or Preferences | Editor | Inspections | HTML

Inspection ID: HtmlMissingClosingTag

Suppressing Inspection

You can suppress this inspection by placing the following comment marker before the code fragment where you no longer want messages from this inspection to appear:

//noinspection HtmlMissingClosingTag

More detailed instructions as well as other ways and options that you have can be found in the product documentation:

Last modified: 18 September 2025