Last Updated: February 25, 2016
·
1.05K
· jackilyn

HTML5 spellcheck Attribute

It works on any input (apart from passwords), textarea’s and editable content divs. Useful on inputs where a user enters name to make them cleaner.

<input type="text" spellcheck="true|false">

2 Responses
Add your response

I've only seen spellcheck="true". I've never seen "true|false". Can you explain what it does? Thanks.

over 1 year ago ·

There is no value "true|false", he's just implying that you can either set the value of the spellcheck attribute to either "true" OR "false". http://www.w3.org/html/wg/drafts/html/master/editing.html#attr-spellcheck

over 1 year ago ·