HTML Button Tag
Reference on how to use the Button element of HTML. Includes a list of allowed attributes, and a useful example.
The HTML Button Element is used to create push buttons, these can either be used to submit a Form, or used together with JavaScript to complete a custom task.
Attributes
| Attribute: | Value: | Description: |
| Attrs | Other Attributes | Common, I18n, Event |
| Disabled | Disabled | Disables the Element |
| name | Character Data | |
| value | Character Data | |
| type | button|submit|reset | for use as form button |
| tabindex | NUMBER | position in tabbing order |
| accesskey | {CHARACTER} | position in tabbing order |
| onfocus | Script | The element got the focus |
| onblur | Script | The element lost the focus |
HTML Button Example
<p><button>Push Me!</button></p>
You can also use images inside the button element.