New course! Every coder should learn Generative AI!
Try a free lesson0
<button onclick="yourFunctionInJavaScript()">Click me</button>
Like most tags, need open and close, unless:
<input type="button" value="Click me" onclick="functionInJavaScript()" />
Obs: /> the slash is optional, but i like to put it when the tag doesn't need be closed </tagClose>