Welcome Guest! (App Version 3.1)

websitnero logo name

HTML Submit


  • <input type="submit"> or <button type="submit"> can be used to make a submit button.
  • On clicking the submit button all data in form (present on page) is sent to the server.

Submit Button in HTML Form

Submit button is used to submit all the form values to a server page. Whatever details you put in a form (like name, address, gender, etc.) all remains on the client-side or browser till you hit the submit button. At this moment the data goes to the server-side to some server-side script (.php, .asp, .jsp, etc.) and then further saved in the database.

You may use either <input type="submit"> or <button type="submit"> to create a submit button next to a form.


<form id="form1">
  Name: <input type="text"><br/>
  Age: <input type="text"><br/>
  Gender: <input type="radio" name="gender" value="male"> Male
  <input type="radio" name="gender" value="female"> Female<br/>
<submit form="form1">Submit Data</submit>


Gender: Male Female
Further Reading

1. <input type="submit">

WebsiteNero is highly optimized for learning various website developing technlogies. We try our best to add maximum modules and examples to help learn the concepts clearly and vividly. We try to present all content and examples as simple as we can removing any complexity to hurdle easy understanding. We try best provide you with worthful content, but we cannot guarantee full correctness of all the content on this site. While using this website, you agree to have read and accepted all our terms of use and conditions, cookie, and privacy policy. Copyright, 2013-2018 by websitenero.com. All Rights Reserved.