Yes, if you are particular about the layout of the input, you have to make your own.
What you're imagining is a 3x4 input form, right?
The type="tel"
mentioned in the question can only be a string related to the phone number.
(*Number, *#+)
Also, I think that the layout will be different from the expected one in type="number"
.
It will be difficult to control only with INPUT.
Also, we have added elements of pattern
, but
It does not guarantee input values.
pattern
can also be entered with restrictions.
I don't use it because I can't rely on it.
(But I can't find a use for it.)
© 2025 OneMinuteCode. All rights reserved.