

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How to specify whether the element is to have its spelling and grammar checked or not in HTML?
To specify whether the element is to have its spelling and grammar checked, use the spellcheck attribute in HTML. The attribute checks spelling and grammar for text in input elements, <textarea> elements, and editable elements.
Note − It works for input elements, but not a password.
Example
You can try to run the following code to add spell checker in HTML −
<!DOCTYPE html> <html> <body> Subject : <input type = "text" name = "sub" spellcheck = "true"> <p>Add an incorrect spelling for a word above and see what happens.</p> <p contenteditable = "true" spellcheck = "true">This is an editable conttent, with a spelling mistake. Click to edit.</p> </body> </html>
- Related Questions & Answers
- How to specify whether the content of an element should be translated or not in HTML?
- How to set whether an element is draggable or not in HTML?
- How to specify whether the <form> or the <input> element should have autocomplete enabled in HTML?
- How to specify that an element is not yet relevant in HTML?
- Check whether the content of an element is editable or not in HTML
- How to specify that the element is read-only in HTML?
- Specify whether the flex items should wrap or not with CSS
- How to set whether or not an element is resizable by the user with JavaScript?
- How to check whether a checkbox is checked in JavaScript?
- How to know whether your training is effective or not?
- How to check whether a checkbox is checked with JavaScript?
- How to check in R whether a matrix element is present in another matrix or not?
- How to specify which form element a calculation is bound to with HTML?
- How to check whether the Pandas series is having Nan values or not?
- How to specify the language of the element's content in HTML?
Advertisements