Favorites

HTML writingsuggestions Global Attribute

writingsuggestions
HTML Global AttributeThis global attribute is supported in some modern browsers, but not all.
Updated 22nd November 2026

The writingsuggestions attribute sets whether the browser may show its own predictive writing suggestions while the user types: true or false.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

Description

The writingsuggestions attribute is a global attribute that controls whether the browser may show its own writing suggestions while the user types in an editable element. These are usually predictions shown as grayed-out text after the cursor, which the user can accept to complete a word or sentence.

The attribute is enumerated and accepts true or false. true, an empty value or no attribute at all leave suggestions enabled, which is the default; false disables them. It can be set on an <input>, a <textarea> or an element with contenteditable, or on an ancestor such as a <form> or the <body>, where it applies to all the editable content inside.

<!-- Disabled for this field -->
<input type="text" writingsuggestions="false">

<!-- Enabled (all equivalent) -->
<input type="text">
<input type="text" writingsuggestions>
<input type="text" writingsuggestions="true">
Notes
  • Disabling suggestions is useful where the page already offers its own completions (for example a code editor or a search box with autocomplete), or where predictions would be distracting, such as a spelling test.
  • It does not affect spell checking (use spellcheck), autocorrection (use autocorrect), or the autocomplete suggestions of form fields.
  • The suggestions themselves come from the browser or the operating system; the attribute cannot request particular kinds of suggestions.

Syntax

<element writingsuggestions="true | false">

Values

  • trueWriting suggestions are enabled. An empty value has the same meaning, and it is the default.
  • falseWriting suggestions are disabled for the element and its descendants.

Example

<label for="name">Suggestions enabled (default):</label><br>
<textarea id="name" rows="3" cols="40"></textarea>
<br><br>
<label for="test">Suggestions disabled:</label><br>
<textarea id="test" rows="3" cols="40" writingsuggestions="false"></textarea>
Open in editor

Browser Support

The following information will show you the current browser support for the HTML writingsuggestions global attribute. Hover over a browser icon to see the version that first introduced support for this HTML global attribute.

This global attribute is supported in some modern browsers, but not all.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee