Tutorials
THE WORLD'S LARGEST WEB DEVELOPER SITE

Exercise:

Create an input field that should only contain a numeric value, and place it inside the <form> element.Add the name attribute with a value of "quantity" to the input element.Set restrictions on the input field to only accept numbers between 1 and 5.

Hint: 1. Use input type="number". 2. Add the name attribute. 3. Add the min and max attributes.