Optional
The type property of the HTMLInputElement interface indicates the kind of data allowed in the element, for example a number, a date, or an email. Browsers will select the appropriate widget and behavior to help users to enter a valid value.
type
MDN Reference
The
typeproperty of the HTMLInputElement interface indicates the kind of data allowed in the element, for example a number, a date, or an email. Browsers will select the appropriate widget and behavior to help users to enter a valid value.MDN Reference