HTML 5 input type number example

HTML 5 input type number example:


<!DOCTYPE html>
<html>
<body>

<form action="form.php">
Quantity (between 1 and 5): <input type="number" name="quantity" min="1" max="5">
<input type="submit">
</form>

</body>
</html>