tag-self-close
Self-closing tags, also known as void elements, are HTML elements that do not require a separate closing tag. These tags are self-contained and are typically used for elements that do not have any content between an opening and closing tag. Self-closing tags help keep the HTML structure clean and concise. This rule is especially relevant for XHTML or projects requiring strict HTML syntax.
Level: Warning
Config value
Section titled “Config value”- true: enable rule
- false: disable rule
The following pattern is not considered a violations
Section titled “The following pattern is not considered a violations”<meta charset="UTF-8" />
The following pattern is considered a violation
Section titled “The following pattern is considered a violation”<meta charset="UTF-8">