# meta-charset-require

> Ensures every HTML document includes a meta charset tag within the head element for proper character encoding.

A `<meta charset="">` must be present in `<head>` tag.

Level: Error

## Config value

[Section titled “Config value”](#config-value)

* `true`: enable rule
* `false`: disable rule

### The following patterns are **not** considered rule violations

[Section titled “The following patterns are not considered rule violations”](#the-following-patterns-are-not-considered-rule-violations)

```html
<html><head><meta charset="utf-8"></head></html>
```

### The following patterns are considered rule violations

[Section titled “The following patterns are considered rule violations”](#the-following-patterns-are-considered-rule-violations)

```html
<!-- Missing meta charset -->
<html><head></head></html>


<!-- Empty meta charset value -->
<html><head><meta charset=""></head></html>


<!-- Whitespace-only meta charset value -->
<html><head><meta charset=" "></head></html>
```