English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Manual de Referência HTML

大全 de etiquetas HTML

Atributo spellcheck em HTML

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.

Atributos Globais do HTML

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.

Exemplo online

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 ‹/›

Browser compatibility

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.

Definition and usage

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

HTML 4.01 and HTML5difference between

The spellcheck attribute is an HTML5 New feature.

Syntax

<element spellcheck="true|false">

Attribute value

ValueDescription
trueIt is specified that the text of the element should be spell-checked.
falseIt is specified that the text of the element should not be spell-checked.
Atributos Globais do HTML