disallows void element with content (void)

HTML void elements cannot have any content and must not have an end tag.

Rule details

Examples of incorrect code for this rule:


2:11 - Expected omitted end tag <input> instead of self-closing element <input/>
5:11 - End tag for <img> must be omitted

Examples of correct code for this rule:




This rule takes an optional object:

    "style": "omit",