要添加拼寫檢查器,請使用 HTML 中的 spellcheck 屬性。該屬性檢查輸入元素、
注意 – 它適用于輸入元素,但不適用于密碼。
示例
您可以嘗試運行以下代碼在 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>
登錄后復制
以上就是如何在HTML中添加拼寫檢查器?的詳細內容,更多請關注www.92cms.cn其它相關文章!






