onclick event handler content attribute to make the button actually do something). The
onclick event handler is invoked when the user clicks on the button.
<button> element creates a button control in an HTML document.
Any contents of the
<button> element appears on the button.
onclick attribute — as we have done in the above example) to make the button actually do something.