HTML <button> Tag
Description:
The <button> tag is used for creating a button within forms.
Specific Attributes:
| Attribute | Definition |
| name | Specifies the name for a button. |
| value | Specifies the underlying value of a button. |
| type | Specifies the type of a button.
|
Other Attributes:
| Attribute | Definition |
| dir |
Specifies the text direction for the content in
an element.
|
| class | Specifies a classname for an element. |
| id | Specifies a unique id for an element. |
| lang | Specifies a language code for the content in an element. |
| disabled | Disables the button. The button won't work when clicked. It also cannot receive focus and will be skipped when tabbing. |
| accesskey | Specifies a keyboard shortcut to access an element. |
| tabindex | Specifies the tab order of an element. |
| title | Specifies a title to associate with the element. Many browsers will display this when the cursor hovers over the element (similar to a "tool tip"). |
| style | Specifies an inline style for an element. |
Example Code:
<button type="button">Click Me!</button>