Idocs Guide to HTML

Attribute for <SELECT ...>
MULTIPLE

MULTIPLE designates that more than one option in the list can be selected. When creating a multiple list it is almost always a good idea to also use the SIZE attribute.

this code produces this
<SELECT NAME="toppings" MULTIPLE SIZE=5>
<OPTION VALUE="mushrooms">mushrooms
<OPTION VALUE="greenpeppers">green peppers
<OPTION VALUE="onions">onions
<OPTION VALUE="tomatoes">tomatoes
<OPTION VALUE="olives">olives
</SELECT>

How you go about selecting the options you want depends on the browser, but for most browsers you hold down the CONTROL key while you click on the options you want. Unfortunately this is confusing for many users. For shorter selection lists, it is much more intuitive to use checkboxes. Consider if this list of checkboxes is clearer than the multiple selection list above:

this code produces this
<INPUT TYPE=CHECKBOX NAME="mushrooms">mushrooms<BR>
<INPUT TYPE=CHECKBOX NAME="greenpeppers">green peppers<BR>
<INPUT TYPE=CHECKBOX NAME="onions">onions<BR>
<INPUT TYPE=CHECKBOX NAME="tomatoes">tomatoes<BR>
<INPUT TYPE=CHECKBOX NAME="olives">olives

mushrooms
green peppers
onions
tomatoes
olives


Recommended Resources

web hosting tutorials
Credit Help
Search the Internet
Search Engine Help
Low Fat Lifestyle
Internet Traffic
Web Hosting
Web Design

Discount Hotel Reservations

Search The Internet


Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.
About the author

All Rights Reserved, Copyright © Free-HTML-Tutorials.com 2003
A service of 1stHostWeb.com