HTML/Elements/input/button

From W3C Wiki
< HTML‎ | Elements‎ | input
Revision as of 15:24, 15 March 2011 by Hiroki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

<input type="button">

The button state represents a button with no default behavior.

HTML Attributes

  • name = string
    Gives the name of the input element.


  • value = string
    Gives the default value of the input element.


Example

Example A

[try it]

<input type="button" value="Show Hint" onclick="alert('This 15-20 minute piece was composed by George Gershwin.')">

Input button01.png

HTML Reference

The HTML5 specification defines the button state in 4.10.7.1.22 BUTTON STATE.