Home → References → HTML Tags →
HTML Tag: button
Defines a form button that has content within it.
HTML Dog is hosted by Titan Internet
Required Attributes
- None.
Optional Attributes
accesskeycan be used to associate a particular keyboard shortcut to the element.tabindexcan be used to specify where the element appears in the tab order of the page.disabledcan be used to disable the button. It must be used in the formatdisabled="disabled".namecan be used to associate a name to the button so that it can be processed by a form-handling script.typecan be used to specify the button type. Values can bebutton(doesn't do anything),submit(default; submits the form when the button is selected) orreset(resets the form).valuecan be used to specify an initial value.- Common attributes
Example
<button>Push my <strong>button</strong> baby</button>

