Webmaster

HTML : Fill-In Forms
Contents ]
Jérôme Versavel

Form-Related Tags and Attributes

That's a lot tags and attributes to remember! So here is a summary to help you:

<FORM> Defines a new form.
METHOD POST or GET.
ACTION URL of the script to be executed.
<INPUT> Defines a control.
TYPE Specifies the control type (text, password, radio, checkbox, submit or reset.)
VALUE Specifies the control default value, if it can accept one.
NAME Sets the control name.
SIZE Sets the size of controls for text or password types.
CHECKED Selects the default control for radio and checkbox types.
<BUTTON> Creates a new button.
TYPE RESET, SUBMIT or BUTTON.
NAME Specifies the button name.
<TEXTAREA> Defines a multi-line text area.
ROWS Indicates the number of lines for the text area.
COLS Specifies the number of columns for the text area.
NAME Defines a name for the text area.
<SELECT> Creates a new selection list.
NAME Indicates the name of the selection list.
<OPTION> Adds an entry to the selection list.
VALUE Sets the value of the item.
SELECTED Specifies the entry selected by default.





  1   2   3   4   5   6