The <button> button

We can use the <button>..</button> element instead of <input> inside the html form element to create the button.

Note
The <button> button has the attributes as the <input> button (name, value, type & disabled)
The type attribute determines the behaviour of the button. The possible values are
- button (default value)
- reset
- submit
- We can add content (text, images, formatting styles, etc.) to the body of the <button> button to create custom-made buttons.
Only the clicked button adds a name=value pair to the data submitted by the form.
The reset button doesn't submit any data (it resets the default values for the forms fields)
Only the reset button doesn't submit the form's data.
Related Tutorial
Follow Us
https://www.facebook.com/Rookie-Nerd-638990322793530 https://twitter.com/RookieNerdTutor https://plus.google.com/b/117136517396468545840 #
Contents +