codegurukool.com · Free coding tutorials & online compiler

Home › HTML Tutorial › HTML buttons

HTML buttons

Clickable controls.

Use button for actions. Set type to button, submit or reset.

Example code

<button type='button' onclick='alert(1)'>Click me</button>
<button disabled>Disabled</button>'

Run this code in the online editor

← Block, inline and divHTML iframes →