HTML spellcheck 拼写检查
htmlweb developmentfront end technology更新于 2024/5/21 15:40:17
HTML spellcheck 拼写检查用于识别 HTML 文本字段中的语法或拼写错误。该属性返回访问者屏幕的颜色分辨率。
语法
以下是语法 −
<tagname spellcheck=”true | false”>
示例
让我们看一个 HTML 拼写检查的示例 −
<!DOCTYPE html>
<html>
<style>
body {
color: #000;
height: 100vh;
background-color: #FBAB7E;
background-image: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%);
text-align: center;
}
</style>
<body>
<h1>HTML Spell Check</h1>
<textarea rows="5" cols="20" spellcheck="true" placeholder="Enter your message here"></textarea>
</body>
</html>
输出

现在在白色文本区域中输入任何带有拼写或语法错误的消息 −

相关文章
有用资源
html 参考教程 - 该教程包含有关 html 的更多信息:https://www.cainiaomax.com/html/

