<form name="form" method="get" action="" >
Number :
<input type="number" name="num" id="num" min="1" max="5" required="required"/> <br/>
Email :
<input type="email" name="email" id="email" required="required"/> <br />
<input type="submit" name="submit" id="submit" value="submit" />
</form>
提交表格时也采用字母表。未生成错误消息 数字类型不起作用。