generic <input> button

To attach a generic button without any default behaviour to a form, use the <input> element with the type attribute set to "button".

All the <input> button attributes (disabled, name and value) apply to this button.
More than one generic button can be attached to the same <form> element. Name attribute is used to differentiate them.
To add specific behaviour to an <input> button, use javascript or another client side javascript programming language is used.
Generic <input> buttons do not add name=value pairs to the forms data sent by the browser, but submit buttons do.
Related Tutorial
Follow Us #