Welcome to the Bravenet Resource Center. Use these resources to help make your web pages more advanced and fun to use.
The final step in building a form is providing visitors with a button they can click on that will submit the information they have added to your form. This is done by adding a special <input> tag called a 'submit' tag.
When a visitor clicks the submit button, the form is activated and processed using the action defined in the opening form tag. The submit button uses a standard <input> tag defined with its own special 'type'. It has a couple of attributes that should be defined for best results:
Let's write a basic submit button input tag, step by step, to show how the tag is correctly coded. First we start with the opening input tag:
Next we need to define what sort of input field we want to use. In this case we are coding a submit button, so we enter "Submit" as the type:
The final step in creating your submit button is to include the text that you wish to display on the button, by adding the text to the value attribute, like this:
Here is how the submit button will appear in a form on a webpage:
The text displayed on the button can be anything you like. Here are some common examples of text used on submit buttons:
The buttons coded above will display in a browser, like this: