# tag-self-close

> Requires proper use of self-closing tags for void elements to maintain valid HTML structure.

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”](#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”](#the-following-pattern-is-not-considered-a-violations)

```html
<meta charset="UTF-8" />
```

### The following pattern is considered a violation

[Section titled “The following pattern is considered a violation”](#the-following-pattern-is-considered-a-violation)

```html
<meta charset="UTF-8">
```