English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
A propriedade spellcheck global é uma propriedade enumerativa, que define se os erros de digitação dos elementos podem ser verificados. Ela pode ter os seguintes valores: true, define que a verificação de digitação do conteúdo do elemento deve ser ativada, sempre que possível; false, define que a verificação de digitação do conteúdo do elemento deve ser desativada, sempre que possível.
Este atributo é apenas uma sugestão no navegador: o navegador não verifica erros de digitação forçadamente, geralmente os elementos não editáveis não são verificados, mesmo que o atributo spellcheck esteja definido como true e o navegador suporte verificação de digitação.
Uso de parágrafos editáveis com spellcheck:
!doctype html> <html> <head> <meta charset="UTF-8"> <title>Uso do atributo spellcheck em HTML (Tutoriais Básicos da Web oldtoolbag.com)</title> </head> <body> <p contenteditable="true" spellcheck="true">Este é um parágrafo que pode ser editado, você pode tentar modificar ou excluir./p> Primeiro nome: <input type="text" name="fname" spellcheck="true"> <p><strong>Nota:</A atributo spellcheck não é suportado no Internet Explorer 9 e versões anteriores./p> </body> </html>Test see ‹/›
IEFirefoxOperaChromeSafari
Internet Explorer 10, Firefox, Opera, Chrome, and Safari browsers support the spellcheck attribute.
Note: Internet Explorer 9 and earlier IE versions do not support the spellcheck attribute.
The spellcheck attribute specifies whether the spelling and grammar of the element should be checked.
The following text can be spell-checked:
text value in input elements (not password)
text in <textarea> elements
text in editable elements
The spellcheck attribute is an HTML5 New feature.
<element spellcheck="true|false">
Value | Description |
---|---|
true | It is specified that the text of the element should be spell-checked. |
false | It is specified that the text of the element should not be spell-checked. |