|
To access the contents, click the chapter and section titles.
Platinum Edition Using HTML 4, XML, and Java 1.2
<OPTGROUP> Type: Container Function: Defines a logical group of select list options. Syntax: <OPTGROUP LABEL=label_text DISABLED> <OPTION> ... </OPTION> <OPTION> ... </OPTION> <OPTION> ... </OPTION> ... </OPTGROUP> Attributes: <OPTGROUP> can take two attributes:
Example: <OPTGROUP LABEL=months> <OPTION VALUE=Jan>January</OPTION> <OPTION VALUE=Feb>February</OPTION> <OPTION VALUE=Mar>March</OPTION> ... </OPTION> Related Tags: The <OPTGROUP> tag should be used only inside the <SELECT> and </SELECT> tags. The only tag allowable inside the <OPTGROUP> and </OPTGROUP> tags is the <OPTION> tag. <TEXTAREA> Type: Container Function: Sets up a multiple-line text input window. Syntax: <TEXTAREA NAME=field_name ROWS=number_of_rows COLS=number_of_columns DISABLED READONLY ACCESSKEY=shortcut_key_letter TABINDEX=tab_position> ... default text to appear in window ... </TR> Attributes: The <TEXTAREA> tag can take the following attributes:
Example: <TEXTAREA NAME=feedback ROWS=10 COLS=40> We appreciate your comments! Please delete this text and type in your feedback. </TEXTAREA> <BUTTON> Type: Container Function: Places a button on the form. This type of button is different from the one rendered by <INPUT> because it has improved presentation features, such as three-dimensional rendering and up/down movement when clicked. Syntax: <BUTTON TYPE=SUBMIT|RESET|BUTTON NAME=button_name VALUE=button_value DISABLED ACCESSKEY=shortcut_key_letter TABINDEX=tab_position> ... text for button face or <IMG> tag ... </BUTTON> If text is placed between the <BUTTON> and </BUTTON> tags, that text will appear on the face of the button. If an <IMG> tag is placed between <BUTTON> and </BUTTON>, the image will be used as the button. Attributes: You can use the following attributes with the <BUTTON> tag:
Example: <BUTTON NAME=validate VALUE=form_validation onClick=validate();> Click here to validate your input. </BUTTON> <LABEL> Type: Container Function: Denotes a form field label. Labels are typically text next to the field that prompts the user for the type of input expected. This works fine for text-based browsers, but it makes forms inaccessible for users who are visually impaired and who use speech-based or Braille browsers. Marking field labels with the <LABEL> tag makes it possible to prompt these users for the necessary input. Syntax: <LABEL FOR=field_ID ACCESSKEY=shortcut_key_letter> ... label text goes here ... </LABEL> Attributes: The <LABEL> tag takes the following attributes:
Example: <LABEL FOR=PW ACCESSKEY=P>Enter your password:</LABEL> <INPUT TYPE=PASSWORD ID=PW NAME=passwd> Related Tags: <LABEL> is typically used with the <INPUT>, <SELECT>, or <TEXTAREA> tags. <FIELDSET> Type: Container Function: Groups related form input fields. Syntax: <FIELDSET> ... related input fields ... </FIELDSET> Attributes: None. Example: <FIELDSET> Login: <INPUT TYPE=TEXT NAME=login> Password: <INPUT TYPE=PASSWORD NAME=passwd> </FIELDSET> Related Tags: The <LEGEND> tag can be used to give a field grouping a specific name. <LEGEND> Type: Container Function: Names a group of related form fields. Syntax: <LEGEND ALIGN=LEFT|RIGHT|TOP|BOTTOM ACCESSKEY=shortcut_key_letter> ... legend text goes here ... </LEGEND> Attributes: The <LEGEND> tag has two attributes:
Example: <FIELDSET> <LEGEND ALIGN=TOP>User Login Information</LEGEND> Login: <INPUT TYPE=TEXT NAME=login> Password: <INPUT TYPE=PASSWORD NAME=passwd> </FIELDSET> Related Tags: <LEGEND> gives a name to a set of fields grouped together by the <FIELDSET> tag.
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |