When looking at most sites (including SO), most of them use:
<input type="button" />
instead of:
<button></button>
- What are the main differences between the two, if any?
- Are there valid reasons to use one instead of the other?
- Are there valid reasons to use combine them?
- Does using
<button>
come with compatibility issues, seeing it is not very widely used?
vs.
--
in modern browsers, both elements are easily styleable with css but in most cases,
button
element is preferred as you can style more with inner html and pseudo elementsUse button from input element if you want to create button in a form. And use button tag if you want to create button for an action.