280 users online (0 members and 280 guests)  


  HTML Form Input Types Submit and Reset





These two input types are the buttons you see at the bottoms of all the forms, the submit button, and the reset button. The submit button sends the information, and the reset button erases all the information in all the fields in the form.


Here is an example


<input type="submit" value="Send the Info"> <input type="reset" value="Reset the Info">


The code above would result in this (but only if with in <form> tags):


Here are the attributes for the submit and reset input types


  • input * - tells the browser that this is part of the form

  • type * - tells the browser what input type it is

  • value - what is put on the button


* = mandatory


Back to the HTML menu.