HTML spellcheck 屬性
定義和用法
The spellcheck
attribute specifies whether the element is to have its spelling and grammar checked or not.
以下元素可以進行拼寫檢查:
- 輸入元素中的文字值(非密碼)
- <textarea> 元素中的文字
- 可編輯元素中的文字
適用範圍
The spellcheck
attribute is part of the Global Attributes, and can be used on any HTML element.
元素 | Attribute |
---|---|
所有 HTML 元素 | 拼寫檢查 |
示例
瀏覽器支援
表格中的數字表示完全支援該屬性的第一個瀏覽器版本。
Attribute | |||||
---|---|---|---|---|---|
拼寫檢查 | 9.0 | 10.0 | 2.0 | 5.1 | 10.5 |