Form Input Types5

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.

Your code

Result

All exercises · Next: Form Attributes1 →