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 |