writing-suggestions

The HTML writing-suggestions attribute advises browsers on the types of writing assistance to offer, like autocorrect or spellcheck, enhancing text input accuracy and user experience.

writing-suggestions attribute

The writing-suggestions attribute regulates the presentation of writing aids, like spelling and grammar suggestions, for text input fields.

Syntax

index.html
<input writingsuggestions="value">

Example

index.html
<input type="text" pattern="[A-Za-z]{3,}" title="Three or more letters" />

Values

  • on: Enables writing suggestions, such as auto-corrections and spell-checking.
  • off: Disables writing suggestions.
This attribute helps manage writing aids and suggestions but may not be supported across all browsers and platforms.

See also

Conclusion

The writing-suggestions attribute allows you to control the presence of writing aids, like spellcheck and autocorrection, in text input fields. By setting it to on, you enable suggestions, while off disables them. Keep in mind, it may not be supported across all browsers or platforms.