<form action="">
姓名:<input type="text"value="12" name="name"required="required">
<!-- 不能为空验证 -->
邮箱:<input type="text" value="12@qq.com"name="email" pattern="/^(([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]/^(([a-zA-Z0-9_-])" >
<!-- 正则表达式验证 -->
<input type="submit"id="save" value="提交">
</form>