<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>
It is taking alphabets too on submitting the form.
No error messages are generated
Number type is not working.
This is how you use the input type number in HTML5:
Here is a working example of the input type number.
If you want to add validation try this:
Here is a working example of the pattern attribute.
Note: Both the input type number and the pattern attribute have limited browser support.