writingsuggestions

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

The writingsuggestions global attribute is an enumerated attribute indicating if browser-provided writing suggestions should be enabled on the element or not.

Some browsers provide writing suggestions to users as they type in editable fields. Suggestions usually appear as greyed-out text positioned after the text cursor, completing the user's sentence. While this can be helpful to users, developers might want to turn writing suggestions off in some cases, such as when providing site-specific writing suggestions.

The writingsuggestions attribute can be set on editable fields such as <input> or <textarea> elements, or on other HTML elements to control the behavior of the browser's suggestions on sections of a page, or on the entire page.

Syntax

In browsers that support them, writing suggestions are enabled by default. To disable them, set the writingsuggestions attribute's value to false. Setting the attribute's value to true, or omitting the value, enables writing suggestions.

To disable writing suggestions:

html
<input type="text" writingsuggestions="false" />

To enable writing suggestions:

html
<input type="text" />
<input type="text" writingsuggestions />
<input type="text" writingsuggestions="true" />

Specifications

Specification
HTML Standard
# writing-suggestions

Browser compatibility

BCD tables only load in the browser

See also