Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


What is the main difference between input type button and submit in HTML?

NickFNickF USAMember Posts: 132
edited March 2014 in HTML & WEB-Design

Can someone please explain the main difference between <input type='button' /> and <input type='submit' /> in a HTML form?


  • DavidMDavidM USAMember Posts: 342
    edited March 2014

    <input type='button' /> - There is no default action. You have to use JavaScript to add an action.

    <input type='submit' /> - Submits the form data.

Sign In or Register to comment.