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.
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.
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.
In this section
Topic | Description |
---|---|
Learn how to create different types of button controls. |
|
Learn how to use Cascading Style Sheets (CSS) and the Windows Library for JavaScript style sheets to style button controls. |