All major browsers support the
Important: If you use the button element in an HTML form, different browsers will submit different values. Internet Explorer will submit the text between
The
Inside the button element you can place content, such as text or images. This is the difference between this element and buttons created using input elements.
The
The only prohibited element is image mapping, as its mouse and keyboard-sensitive actions interfere with the behavior of form buttons.
Always specify the type attribute for buttons. The default type in Internet Explorer is "button", while the default in other browsers (including the W3C specification) is "submit".