buttons] html code example Example: how to add buttons in html <button type="button" onclick="alert('You pressed the button!')">Click me!</button>