There are two ways to create a button in HTML. One is with the <button> tag, and the other is with the <input> tag.
What's the difference? The <button> tag allows you to use HTML inside of your button (so you could bold certain letters on the button's text, etc).
Here is a button tag:
<button id="mybutton">Click me</button>
The result:
Here is an input tag:
<input type="button" value="Click me too">
The result:
The input tag does not need a closing tag.
Leave a comment