HTML <input type = "button"> (original) (raw)
Last Updated : 20 May, 2024
The **HTML element creates a clickable button that can be customized with text or an image. It does not have any default behavior but can be used to perform actions using JavaScript. It makes versatile for various interactive purposes in web forms and applications.
**Syntax
**Example: In this example, we will demonstrate the use of the HTML element.
html `
HTML Input Type ButtonHTML
<form action="#">
<label for="button">Click this Button</label>
<input type="button" id="button"
onclick="send()" value="Click Here!">
</form>
<script>
function send() {
alert("Welcome to GeeksforGeeks");
}
</script>
`
**Output
**Supported Browsers
- Chrome 1
- Edge 12
- Firefox 1
- Opera 15
- Safari 1