November 22, 2026 What Is the HTML Submit Button? The HTML submit button is used to submit form data to the server for processing. When a user clicks the submit button, the browser sends the information entered in the form to the URL specified in the form's action attribute using the HTTP method defined by the method attribute. Example <form method="post" name="frmFullName"> Enter First Name:<input type="text" name="fname" id="fname" /> Enter Last Name:<input type="text" name="lname" id="lname" /> <input type="submit" name="save" value="Save"> <input type="reset" name="clearform" value="Reset Form"> </form> Output Enter First Name: Enter Last Name: FAQ 1. What Happens When a User Clicks an HTML Submit Button? When a user clicks the submit button, the browser validates the form fields and, if validation succeeds, sends the successful form controls to the server. The destination and submission method are determined by the form's action and method attributes. 2. What Is the Difference Between Submit and Button Input Types in HTML? The submit input type submits the form when clicked, whereas the button input type does not submit a form automatically. A regular button is generally used with JavaScript to perform custom actions. 3. Can I Prevent an HTML Submit Button from Submitting a Form? Yes, you can disable a submit button using the disabled attribute. You can also use JavaScript to control when the button becomes available based on user actions or form validation.