Difference between button and input type in HTML/XHTML Posted March 27, 2016 Hi guys, I am a newbie with HTML5 and i have some questions: which is the difference between these tags? 1) <button type="button" onclick="function()>CIAO</button> 2) <input type="button" onclick="function()" value="CIAO"> 3) <button type=submit>INVIA</button> 4) <input type="submit" value="INVIA"> According to me, 1) and 2) are the same thing (simple button). Also 3) and 4) (a way to submit form). Which form is used normally? Thanks
Difference between button and input type
in HTML/XHTML
Posted
Hi guys,
I am a newbie with HTML5 and i have some questions: which is the difference between these tags?