0

Question

Can someone please explain what step attribute means in an input tag

28th Dec 2021, 4:28 PM
Ogu Charles Chukwudi
Ogu Charles Chukwudi - avatar
2 Answers
+ 1
In <input type="number">, did you noticed that they are some icons in the right to increment and decrement, the step attributes defines how many numbers to increment or decrement when clicking them
28th Dec 2021, 5:28 PM
VCoder
VCoder - avatar
0
If you work on a computer, try this html : <input type="number"><br><input type="number" step="2"> and you will understand
28th Dec 2021, 5:32 PM
VCoder
VCoder - avatar