0

Difference between input type="button" and button

What's the difference between the <button> and the <input type="button"> tag?

12th Aug 2020, 6:50 PM
Amiba
Amiba - avatar
2 Answers
+ 3
Amiba for bit clarity, an input with type provided as 'button' is different from the <button> tag without having type attribute defined. button tag has default type as "submit" for most of the browsers except some versions of IE. So to use button tag for other purpose u need to provide type as button or use some js
12th Aug 2020, 7:12 PM
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ 
ŠœŠ³. ŠšŠ½Š°ŠæšŸŒ  - avatar
0
There's no difference
12th Aug 2020, 6:52 PM
Namit Jain
Namit Jain - avatar