Version | //IETF//DTD HTML 2.0 Strict//EN
|
---|
Element | SELECT |
---|
Purpose | selection of option(s) |
---|
Description | The SELECT element is used to create a list of items from which the user can select. The SELECT element is used in a FORM element and the options are defined by the OPTION element.
|
---|
Start tag | Required <SELECT>
|
---|
Attributes | Name | Type | Default | Comment |
---|
MULTIPLE | ( MULTIPLE ) | #IMPLIED | multiple selections allowed | NAME | CDATA | #REQUIRED | name of form datum | SDAFORM | CDATA | #FIXED "List" | one to one mapping; in support of transformation to the International Committee for Accessible Document Design DTD for usable access to structured information by print-impaired individuals | SDAPREF | CDATA | #FIXED "<LHead>Select #AttVal ( Multiple )</LHead>" | generated text prefix; in support of transformation to the International Committee for Accessible Document Design DTD for usable access to structured information by print-impaired individuals | SIZE | NUMBER | #IMPLIED | options displayed at a time
|
|
---|
Content | ( OPTION + ) -( INPUT | SELECT | TEXTAREA )
|
---|
End tag | Required </SELECT>
|
---|
Referenced in | FORM SELECT TEXTAREA
|
---|
Example | Source | Appearance |
---|
<FORM Method="POST"
Action= "http://www.december.com/cgi-bin/formmail.secure.cgi">
<INPUT Type="hidden" Name="recipient" Value="nobody@december.com">
<p>Your Name: <INPUT Type="text" size="15" Name="user-name">
<P>Customer Number: <INPUT Type="number" size="10" Name= "customer-number">
<P>Shirt Size?
<INPUT Type="radio" Name="shirt-size" Value="S">S
<INPUT Type="radio" Name="shirt-size" Value="M">M
<INPUT Type="radio" Name="shirt-size" Value="L">L
<INPUT Type="radio" Name="shirt-size" Value="XL">XL
<P>What would you like?
<P><SELECT Name="would-like" size="2" multiple>
<OPTION>Order the product</OPTION>
<OPTION>Ask a question</OPTION>
<OPTION>Request a catalog</OPTION>
</SELECT>
<P>Your comments?<BR>
<TEXTAREA Name="comments" rows="4" cols="20"></TEXTAREA>
<P><INPUT Type="submit" Value="Send">
<INPUT Type="reset" Value="Cancel">
</FORM>
|
|
|
---|