266
Add a Button to Your Form .....................................
2 Type <input.
3 Type type=”submit”.
1 In your editor, open an HTML
page that contains a form.
Add a Button to Your Form
I
n order to submit the data to a server, your user must click a button. HTML offers two methods by
which a button can be added to the form. The first uses the <input> tag with a type attribute
set to submit. The second uses the
the same, so the one you use is primarily up to you. The text that appears on the button varies
between browsers, but you can add the value attribute to set it to text of your choosing.