Language: HTML | XAML

Adding buttons (HTML)

Applies to Windows and Windows Phone

Use a button control to commit a command, like submitting or resetting a form. Buttons offer a simple way to trigger a command.

Standard button

The standard button triggers an action that is defined by the developer.

A standard button
Submit button

The submit button submits a form that the user has filled out to the server, or triggers an action. It is activated when the user clicks the button or when the user presses the Enter key while the focus is on another control on the same form, except when that control is another button.

A submit button
Reset button

The reset button clears all the fields of a form so that the user can start over again. It has the same default style as the standard button.

A reset button

In this section

TopicDescription

Quickstart: Adding a button

Learn how to create different types of button controls.

How to style buttons

Learn how to use Cascading Style Sheets (CSS) and the Windows Library for JavaScript style sheets to style button controls.

 

 

 

Show:
© 2014 Microsoft