The submit input type creates the button, while the value defines what the button should say. Without the value attribute, browsers show a default setting. The following line defines the submit button which a user clicks to submit a form:
Submissions are sent to a form-handler. The form-handler is typically a server page with a script for processing input data. The form-handler is specified in the form's action attribute:
HTML file: | Displayed by browser: |
---|---|
<form action="http://www.w3schools.com/html/action_page.php">
First name:<br /> <input type="text" name="firstname" value="Mickey"> <br /><br /> Last name:<br /> <input type="text" name="lastname" value="Mouse"> <br /><br /> <input type="submit" value="Submit"> </form> |
Internet Explorer's default text for submit buttons is "Submit Query", while both Chrome and Firefox use "Submit".