Create HTML text input which allows only numeric input - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:input text

Description

Create HTML text input which allows only numeric input

Demo Code

ResultView the demo in separate window

<html>
 <head></head> 
 <body> 
  <form action="">
    Quantity (between 1 and 5): <!-- w  ww. j a v  a 2 s . c  om-->
   <input type="number" name="quantity" min="1" max="5"> 
   <input type="submit"> 
  </form>  
 </body>
</html>

Related Tutorials