GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • MDN
  • HTML: Markup language
  • Elements
  • Global attributes
  • Attributes
  • See all…
  • Responsive images
  • HTML cheatsheet
  • Date & time formats
  • See all…
  • SVG
  • MathML
  • XML
  • CSS: Styling language

This view

  • Original page
  • New address

GeezerVison is showing developer.mozilla.org — writingsuggestions HTML global attribute - HTML | MDN

writingsuggestions HTML global attribute

Limited availability

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

Want more browser support for this feature? Tell us why.

  • See full compatibility
  • Learn more

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

Some browsers provide writing suggestions to users as they type in editable fields. Suggestions usually appear as grayed-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
# writing-suggestions

Browser compatibility

See also

  • autocomplete attribute
  • spellcheck attribute
  • contenteditable attribute
  • <textarea>
  • <input>
  • <datalist> and list attribute

Help improve MDN

Learn how to contribute

This page was last modified on Aug 27, 2026 by MDN contributors.

View this page on GitHub • Report a problem with this content
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.