Common Attributes |
|||||||
Tag |
|
|
Special Attributes | ||||
FORM | The FORM tag defines the entire form. It describes where the entered content will be sent when the SUBMIT button is pressed. It also defines how the information will be structured. | ||||||
ACTION describes where the entered content
will be sent (usually a URL) METHOD describes how the entered content should be formatted (either GET or POST) |
|||||||
Example: <FORM METH0D="get" ACTION="http://sample.com/bin/process.cgi"> |
|||||||
INPUT | The <INPUT> tag displays devices that the reader of a web page can use to submit information. | ||||||
X |
X The content of the VALUE attribute will appear in the textbox for TEXT type INPUTs. |
SIZE defines the width of TEXT type
inputs. MAXLENGTH defines the maximum number of characters that can be entered. TYPE Describes the kind of input device to be displayed. Types include: |
|||||
TEXT (a standard, one line text box), HIDDEN (no input device at all. The information in the VALUE attribute is automatically delivered), RADIO (displays a radio button. If it is clicked on, then the information in the VALUE attribute is delivered), CHECKBOX (displays a check box. If it is check true, then the information in the value attribute is delivered), RESET (displays a reset button which sets all of the input fields to their default), SUBMIT (displays a submit button that sends to its destination, all of the information that has been entered into the form) |
|||||||
Example: <INPUT TYPE=text VALUE="yes" NAME="answer"> From this tag, a text box will be displayed with the word "yes" automatically appearing in the box (the user can replace "yes" with another answer). When the submit button is clicked, the information is sent to it destination. |
|||||||
TEXTAREA | The TEXTAREA tag displays a larger text box within which several lines of text can be entered. | ||||||
X |
WRAP This indicates whether the text entered into the box will word wrap. PHYSICAL or VIRTUAL indicates that it will wrap. OFF indicates that it will not wrap. |
||||||
Example: <TEXTAREA COLS=30 ROWS=3 NAME="x"> </TEXTAREA> Note:Text that is entered into the HTML file between the beginning and ending TEXTAREA tags will appear in the multi-line text box. |
|||||||
SELECT & OPTION |
The SELECT tags define dropdown and scrolling menus. One OPTION tag is necessary for each option in the menu. | ||||||
X |
X The value can be set on OPTION tags when the value to be carried is different from the OPTION prompt. |
SIZE If the size is one (1), then the code will produce a drop down menu. If the size equals the number of items or options, then a menu window will be produced. If the size is more than 1 but less than the number of options, then a scrolling menu window will be displayed. MULTIPLE If the word MULTIPLE is included in the SELECT tag, then users will be able to select multiple options. |
|||||
Example: <SELECT NAME="choice" SIZE=3> <OPTION VALUE=A>Dog <OPTION VALUE=B>Cat <OPTION VALUE=C>Hamster <OPTION VALUE=D>Lizzard </SELECTED> |