asp.net.ph

Skip Navigation Links

AUTOCORRECT Attribute | autocorrect Property

Language References


Controls whether editable text is automatically corrected for spelling and punctuation errors.

Syntax

HTML <element autocorrect = on | off ... >
Script object. autocorrect = on | off

Possible Values


off autocorrect is disabled.
on autocorrect is enabled.

The property is read/write with a default value of off.

Remarks

The autocorrect attribute lets authors specify whether the user agent will automatically correct misspelled words while the user is typing.

When autocorrect is disabled, the browser is not permitted to automatically correct values in an input field.

When enabled, user agents can support autocorrection of mispelled editable text and/or punctuation errors. The specific autocorrection behavior, including which words are substituted, depends on the user agent and the services provided by the underlying device.

Autocorrection is relevant to editable text elements, including:

  • <input> elements, except for password, email, and url, which do not support autocorrection.
  • <textarea> elements.
  • Any element that has the contenteditable attribute set.

Please see the relevant section on autocorrection in the HTML standard for detailed information on tis implementation.

Example


Applies To

INPUT   TEXTAREA



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note