Last modified on 7 October 2010, at 19:41

HyperText Markup Language/Tag List/button

UseEdit

This tag is used for declaring a button on the HTML page. The input tag is more common in declaring a button.

ExampleEdit

<button name="button_one" value="click">Click Me</button>

Optional attributesEdit

disableEdit

Used to disable the button.

nameEdit

Names the button. Used for pages with scripts on them.

typeEdit

Declares the type of the button. The user has three choices:

  • button: Standard button
  • reset: Resets the form that the button is in.
  • submit: submits the form to a page specified.

valueEdit

Decalares a value in the button. Used with scripts.

Standard attributesEdit

More infoEdit

w3school button tag