Forms are primarily used for user input, for people to communicate with you. All form manipulation is done with <form>...</form> tags. There are several different input devices for forms.
Checkboxes allow the user to make more than one selection from a list of choices.
Example:
The code to do this is:
Radio buttons are a lot like checkboxes, but you can only make one selection with a radio button.
Example:The code to do this is:
Evident by the name, the reset button erases all user input thus far from the form.
The reset button looks like this...
...and the code to do it looks like this :
The Submit button sends the information entered by the user in the form to the server.
It looks like the reset button
, but it says submit instead .The code...
In the place of value = "Submit", you could put value = "Commit to this info", value = "Sign away your soul", or anything else. Changing the value changes the words written on the button. For example, the above buttons would appear as follows (refer to the source of this page to see the exact code if you need a reminder):
The size attribute does not have to be included, but, when it is, the size can be adjusted to any number.
For example, to put a text area named "MyBox" that has 5 rows and 40 columns in a form, the code appears like this...