The reset method of the Form form in HTML is used to clear the content entered by the user. It has been mistakenly thought that it simply clears the values in input items such as input.
But this is not actually the case. The essence of the reset method is to restore the content in input items such as input to the value in the attribute value, not the "" null value.
This is what w3c says:
Each time the <input type="reset"> tag appears in an HTML form, a Reset object is created.
When the reset button is clicked, the values of all input elements in the containing form are reset to their default values. The default value is specified by the HTML value attribute or the JavaScript defaultValue attribute.
In actual situations, we often need to implement form reset when editing certain content, but at this time the value attribute of input items such as input may have been assigned a value, so reset just initializes the form to this value.
In this case, we can only use javascript to set the value attribute of input items such as input to empty to achieve the reset effect.