Question: what is the difference between input tag and button tag?
Answer: This is the difference between this element and buttons created with the <input> element. The main difference, besides the ability to add content inside the button element, is the default behavior. The input element with a type of button has no default behavior, whereas the button element default behavior is to submit.