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

NickFNickF USA
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 USA
    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.

Howdy, Stranger!

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


In this Discussion