The button Type

The Current State of HTML5 Forms

<input type=button>
<input type=button value="I am a button">

Live Demo


 


Firefox

Safari

Safari

Chrome

Opera

IE

Android

The Low Down

The button input type creates a button that doesn’t actually do anything.

  • The label of the button is provided via the value attribute. The button will be blank unless you include a non-empty value.
  • button input has no default behavior. To make it do something, use JavaScript.
  • The name and value of the button are NOT submitted with the form.
  • The button input does not go thru constraint validation.

Our Cookie Policy and Privacy Policy outline how we use cookies to help personalize content, tailor and measure our marketing, and improve your user experience. I agree to use of cookies for these purposes.