Inspectopedia 2024.3 Help

Redundant closing tag

Reports redundant closing tags on empty elements, for example, img or br.

Example:

<html> <body> <br></br> </body> </html>

After the quick-fix is applied:

<html> <body> <br> </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.

HtmlExtraClosingTag
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

Last modified: 03 December 2024