Movatterモバイル変換


[0]ホーム

URL:


MDN Web Docs

HTML spellcheck global attribute

BaselineWidely available

Thespellcheckglobal attribute is anenumerated attribute that defines whether the element may be checked for spelling errors.

Note:This attribute is merely a hint for the browser: browsers are not required to check for spelling errors. Typically non-editable elements are not checked for spelling errors, even if thespellcheck attribute is set totrue and the browser supports spellchecking.

Try it

<textarea spellcheck="true">This exampull will be checkd fur spellung when you try to edit it.</textarea><textarea spellcheck="false">This exampull will nut be checkd fur spellung when you try to edit it.</textarea>

It may have the following values:

  • empty string ortrue, which indicates that the element should be, if possible, checked for spelling errors;
  • false, which indicates that the element should not be checked for spelling errors.

If this attribute is not set, its default value is element-type and browser-defined. This default value may also beinherited, which means that the element content will be checked for spelling errors only if its nearest ancestor has aspellcheck state oftrue.

Security and privacy concerns

Using spellchecking can have consequences for users' security and privacy.The specification does not regulatehow spellchecking is done and the content of the element may be sent to a third party for spellchecking results (seeenhanced spellchecking and "spell-jacking").

You should consider settingspellcheck tofalse for elements that can contain sensitive information.

Specifications

Specification
HTML
# attr-spellcheck

Browser compatibility

See also

Help improve MDN

Learn how to contribute.

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp