<Input type = "reset"/> reset button: inputreset
<Input type = "reset"/> reset button:
In form registration or login code, the reset button appears frequently. In the general impression, you can click the reset button to set the value of the form element to null, I think this is the initial impression of many beginners on this button, but it is hard to say whether it is the actual nature.
Let's take a look at a code example:
<! DOCTYPE html>
In the above Code, if you click the reset button after entering the content in the text box, the content in the text box will be cleared, but in fact it is not like this. The reset button means resetting, in other words, the attribute values related to the form element are set to the default state. If the default value of the text box is "ant tribe", manually modify the value of the text box and click the reset button, then the value of the text box is restored to "ant tribe ".
Original address: http://www.51texiao.cn/HTML5jiaocheng/2015/0612/4010.html