Advertisement
Home Open Editor ❯

HTML <input> type Attribute

Example

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

Try this code ❯

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" />


Advertisement

Home Open Editor ❯
Advertisement