Interview Question

What is spellcheck attribute?

Spellcheck controls browser spelling suggestions.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

The `spellcheck` attribute asks the browser whether editable text should be checked for spelling. β€’ It is written inside an element’s opening tag. β€’ The HTML Standard limits which elements may use it and which values are valid. β€’ Browsers apply the attribute when they process the element or the resource it controls.

💡 Simple Example

<textarea spellcheck="true"></textarea>

⚡ Quick Revision

Spellcheck controls browser spelling suggestions.