How Input Type Submit Creates Form Submit Buttons In HTML

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
Value of
How To Define Input Type In HTML (All The Values And Attributes)
What does How Input Type Submit Creates Form Submit Buttons In HTML do?
Defines a button that is clicked to submit a form.

Code Example

<form action="myform.cgi">
<input type="password" name="password" id="password" maxlength="6">
<label for="password"> Type a fake password here</label>
<br><input type="submit" value="Submit">
</form>

The submit value of input displays a Submit button on a form. Clicking this button will submit the form data.

If you want to use an image in place of a Submit button, use the image input type.

Claire is seasoned technical writer, editor, and HTML enthusiast. She writes for HTML.com and runs a content agency, Red Robot Media.

Browser Support for submit

iefirefoxchromeedgesafariopera
AllAllAllAllAllAll