Defines a push button. Inside a button element you can put content,
like text or images. This is the difference between this element and buttons
created with the input element.
Differences Between HTML 4.01 and HTML 5
HTML 5 has a new attribute: autofocus
Example
Source
Output
<button>Click Me!</button>
Attributes
4: indicates if the attribute is defined in HTML 4.01
5: indicates if the attribute is defined in HTML 5
Attribute
Value
Description
4
5
autofocus
true | false
Makes the button focused or not, as the page loads
5
disabled
disabled
Disables the button
4
5
name
button_name
Specifies a unique name for the button
4
5
type
button
reset
submit
Defines the type of button
4
5
value
some_value
Specifies an initial value for the button. The value can be
changed by a script