Description:

The <button> tag is used for creating a button within forms. For the type attribute, specify either submit (send button), reset (reset button), or button (general purpose push button). The initial value is type = "submit", and a send button is created.

Example Code:
<button type="button">Click Me!</button>
Result:
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.
Possible Values:

  • button
  • reset
  • submit
Global Attributes:

The <button> tag also supports the Global Attributes in HTML5

Event Attributes:

The <button> tag also supports the Event Attributes in HTML5



Last updated on 2 August 2018 By Rene Spronk

View All HTML Tags

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.