Horje

How to add HTML <input type="button">

button Defines a clickable button (mostly used with a JavaScript to activate a script)

A push button that activates a JavaScript function when it is clicked.

Definition and Usage

The <input type="button"> defines a clickable button (mostly used with a JavaScript to activate a script).


Browser Support

The numbers in the table specify the first browser version that fully supports the element.

Syntax

<input type="button">

index.html
Example: HTML
<input type="button" value="Click me" onclick="msg()">

Output should be:

How to add HTML <input type="button">




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin