Is it necessary to have a “value” attribute for a password-type “input” element and why?
Not necessarily. The browser will create a value attribute when the user begins typing in the field (that’s what holds the typed in characters). If we have a value attribute, it should be set to empty.
The browser will populate the value with the user input.
Many thanks for the response.