Share via


Adding buttons (HTML)

[ This article is for Windows 8.x and Windows Phone 8.x developers writing Windows Runtime apps. If you’re developing for Windows 10, see the latest documentation ]

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

Topic Description

Quickstart: Add 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.