button element

If you don't know what an element is or how you must use it, I recommend you read the "HTML tags and attributes" tutorial that you can find in the HTML tutorials section.

Table of contents


The button element instructs the browser to provide a multipurpose button. The purpose of a button element is stated in its type attribute, which can take one of the following values: "submit", "reset", "button" and "menu". Depending on this value the behavior and attributes' availability of the element will vary.

In contrast with input buttons, the label of a button is capable of holding any number of non-interactive elements, instead of just text.

Descriptions, examples, attributes and other particular information can be found in the reference for each of the following types: