Why is the type text and not number?

why the type in this example is type=“text” and not type=“number” ?

3 Likes

type="text" accepts all printable character inputs, as one would expect to be able to enter in the input field. type="number" changes the control to number input that only accepts numbers.

1 Like