Prev Demo
HTML5
>
Validate Number
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> <meta charset="UTF-8" /> </head> <body> <form> Enter Number : <input type="number" name="myNumber1" id="myNumber1" required /> <p> Number with step value : <input type="number" name="myNumber1" id="Number1" step="4" required /> </p> <p> Specifying min and max value (1 to 10): <input type="number" name="myNumber" id="myNumber" min="1" max="10" required/> </p> <input type="submit" value="Submit" /> </form> </body> </html>
Note: We DO NOT save your trial code in our database.
Output