There are two buttons may be used, respectively, in the form: Submit button to reset. This section explains the submit button: When users need to submit form information to the server, you need to use the submit button .
Syntax :
<input type="submit" value="提交">
type
:只有当type值设置为submit时,按钮才有提交作用
value
:
按钮上显示的文字
举例
:
The results shown in the browser:
Use the reset button to reset the form information
When the user needs to reset the form information to the initial state, such as the user inputs "user name", found writing error, you can use the 重置按钮
input frame back to the initial state. Just need to type set to "reset" on it.
Syntax :
<input type="reset" value="重置">
type
:只有当type值设置为reset时,按钮才有重置作用
value
:
按钮上显示的文字
举例
:
The results shown in the browser: