button

Support

Specifies a form button.

With this element you can create the same type of buttons as with the input:button element, but the button element can contain HTML formatted text. Use style properties to customize the appearance of buttons.

Example

<button onclick="alert ('You hit me!');">Sample button</button>

Preview