# Bad value “none” for attribute “autocorrect” on element “input”.

> Canonical HTML version: https://rocketvalidator.com/html-validation/bad-value-none-for-attribute-autocorrect-on-element-input
> Attribution: Rocket Validator (https://rocketvalidator.com)
> License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

The `autocorrect` attribute on `<input>` elements does not accept `"none"` as a valid value. The correct value to disable autocorrection is `"off"`.

The `autocorrect` attribute controls whether the browser should automatically correct text input. It accepts only two values: `"on"` to enable autocorrection and `"off"` to disable it. The value `"none"` is not part of the specification and will fail W3C validation.

This attribute was originally a non-standard Safari extension, but it has since been added to the HTML standard. It applies to `<input>` elements that accept text input (such as `text`, `search`, and `url` types), `<textarea>` elements, and elements with `contenteditable` set.

Note that `autocorrect` is different from `autocomplete`, which uses `"off"` and `"on"` as well, but also accepts many other token values like `"name"` or `"email"`. The two attributes control different behaviors: `autocorrect` handles spelling correction, while `autocomplete` handles previously entered values and autofill.

## Incorrect example

```html
<input type="text" autocorrect="none">
```

## Correct example

```html
<input type="text" autocorrect="off">
```
