HTML : Forms Quick Reference
FORM Tag
action: URL to receive the contents of the form
method: how to submit the form, eg. get, post
Submit/Reset Buttons
type: submit or reset
text: text to send with the form
value: text to appear on the button
Text Fields
type: text
name: name of the field to submit
value: default value to fill in the form
size: field width on the form
Hidden Fields
form action="1014.html">
type: text
name: name of the field to submit
value: default value to fill in the form
Selection Lists
name: name of the field to submit
value: value to fill in the form
Use 'selected' to default a value into the form.
Can vary 'value' vs. text displayed; 'value' is what the CGI will see.
Radio Buttons
type: radio
name: name of the field to submit
value: default value to fill in the form
Checkboxes
type: checkbox
name: name of the field to submit
value: will be 'on' or 'off'
Textarea
keywords: hypertext markup language
date: 08/01/2005
|