HTML <input type="button">

❮ HTML <input> tag ❮ HTML <input> type attribute

Example

<input type="button" onClick="alert('Hello world!');" value="button">

Meaning

The <input type="button"> defines a clickable button.

A push button with no default behavior displaying the value of the value attribute, empty by default.


Standard Syntax

HTML: <input type="button">

XHTML: <input type="button" />



Browser Support




Status







❮ HTML <input> tag ❮ HTML <input> type attribute