এইচ টি এম এল এ স্পেল চেকিং কন্ট্রোলিং

Firefox 2 introduces spell checking support to text areas and text fields in web forms. The user can specify using the about:config interface whether or not spellchecking is enabled and whether to check both text areas and text fields or only text areas.

By default, text areas and designMode documents get spell checked while single-line input boxes do not. This is because it would be distracting to users if Firefox marked things like user IDs, and e-mail addresses as errors.

However, there may be situations in which this behavior is not necessarily appropriate. For instance, if a text area is intended to be used for editing HTML or other non-prose data, the spell checker would be a hindrance rather than a help. Similarly, there may be cases in which a web site would like to recommend to Firefox that spell checking be enabled for a specific text field; for example, for search boxes and e-mail subject line fields.

If a web site wishes to recommend whether or not to use spell checking for a specific <input> element, it can use the spellcheck attribute, specifying a value of true to recommend enabling spell checking or false to recommend against using it.

Keep in mind that the site's recommendation may be ignored if the user has disabled spell checking entirely by setting layout.spellcheckDefault to 0. If layout.spellcheckDefault has any other value, the recommendations are taken into account.

You can code a single-line text field (HTML <input> element) with spell checking on with HTML like this:

<input type="text" size="50" spellcheck="true">

Likewise, you can code a text area with spell checking off with HTML like this:

<textarea spellcheck="false"></textarea>

You can control a document in designMode (typically used to implement rich text editing) by setting the spellcheck attribute on the document's <body> tag.

You can apply the spellcheck attribute to other elements as well, such as <span> and <div> elements, in which case any contained <input> elements inherit that setting; <input> elements that do not have a spellcheck attribute inherit the spell check setting specified by their parent. If there is no setting specified in any ancestor elements, the user's default setting is used.