首页 > 解决方案 > 怎么去掉这句话

问题描述

<body>
<form>
             <div>
                    <label for="email" style="margin-right:72%;">Email address</label>
                    <input type="text" name="email" id="email" placeholder="Email" pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$" title="Please enter a valid email address" required>
             </div>
            <button>Send</button>
</form>
</body>

如何删除输出错误消息语句“您必须使用这种格式”?

https://i.stack.imgur.com/5IAVC.png

标签: html

解决方案


只需删除

pattern="[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,}$" title="Please enter a valid email address"

从标签输入


推荐阅读