<input type= "reset"/> Reset button briefly describes:
In the form registration or login code, the reset button appears very high frequency, in the usual impression, click the Reset button can tell the value of the form element is set to empty, I think this is a lot of beginners to this button's initial impression, but the actual nature is so difficult to say.
Let's look at a code example:
<!DOCTYPE HTML><HTML><Head><MetaCharSet= "Utf-8"><Metaname= "Author"content= "http://www.51texiao.cn/" /><title>Ant Tribe</title></Head> <Body><form><ul> <Li>Name:<inputtype= "text"/></Li> <Li>Password:<inputtype= "Password"/></Li> <Li>Hobby:<inputtype= "checkbox"/>Man<inputtype= "checkbox"checked/>Woman</Li> <Li><inputtype= "Reset"value= "Reset"/><inputtype= "Submit"value= "Submit"></Li></ul></form></Body> </HTML>
In the above code, block in the text box after the input, if you click the Reset button, then the contents of the text box will be emptied, but in fact, it is not the case, the reset button means reset, that is, the relevant property values of the form element is set to the default state, if the default value of the text box is "Ant Tribe" After you manually modify the value of the text box, click the Reset button, and the value of the text box reverts to the Ant tribe.
The original address is: http://www.51texiao.cn/HTML5jiaocheng/2015/0612/4010.html
<input type= "reset"/> Reset button Brief Introduction