Buttons are used to perform some action on the given webpage.
Some important buttons are discussed below :
Submit button:
Every form must include a button that submits the form data to the server. You can put any label you like on this button. It has two attributes these are type, which has submit value and value attribute defines the name of the • submit button which can be displayed on the button. These are explained below with an example:
Ex.:<input type=”submit” value=”OK”>
A button will appear on screen. When the user clicks it, all data items on the form are submitted
Reset Button:
You can also include a button that clears all entries on the form so users can start over if they change their minds or make mistakes. It has two attributes these are “type”, which has reset value and value attribute defines the name of the reset button, which can be displayed on the button. These are explained below with an example:
Ex.:<input type= “reset”value= “Reset”>