<select></select>
<select> Description:
The <select> tag creates drop-down lists in XHTML forms.
<select> Web Browser Support:
<select> Attributes:
<select> End Tag:
</select> REQUIRED
<select> Contents:
<option> text. Only the following tag is valid within the <select> tag:
<select> Valid Context:
The <select> tag is valid within the following tags:
a, acronym, address, applet, b, bdo, big, blockquote, body, caption, center, cite, code, dd, del, dfn, div, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, i, iframe, ins, kbd, label, legend, li, noframes, noscript, object, p, pre, q, s, samp, small, span, strike, strong, sub, sup, td, th, tt, u, var
<select> Usage:
<select> Special Notes:
More <select> Information:
Return to XHTML Element (HTML Tags) Library
The <select> tag creates drop-down lists in XHTML forms.
<select> Web Browser Support:
- Netscape 2, 3, 4, 6, 7
- Mozilla 1
- Internet Explorer 2, 3, 4, 5, 6
- Opera 3, 4, 5, 6, 7, 8
- Safari 1
- WebTV/MSN TV
- AvantGo Palm OS
- AvantGo Windows CE
- HTML 3.2, 4.0
- XHTML 1.0: XHTML Basic Forms Module, XHTML Intrinsic Events Module, XHTML Forms Module - Modular XHTML Elements
<select> Attributes:
- autoactivate (optional) (WebTV/MSN TV)
- bgcolor (optional)
- class (optional)
- dir (optional)
- disabled (optional)
- id (optional)
- lang (optional)
- multiple (optional)
- name (optional)
- onblur (optional)
- onchange (optional)
- onclick (optional)
- ondblclick (optional)
- onfocus (optional)
- onkeydown (optional)
- onkeypress (optional)
- onkeyup (optional)
- onmousedown (optional)
- onmousemove (optional)
- onmouseout (optional)
- onmouseover (optional)
- onmouseup (optional)
- onselect (optional)
- selcolor (optional)
- size (optional)
- style (optional)
- tabindex (optional)
- text (optional)
- title (optional)
- usestyle (optional)
<select> End Tag:
</select> REQUIRED
<select> Contents:
<option> text. Only the following tag is valid within the <select> tag:
<select> Valid Context:
The <select> tag is valid within the following tags:
a, acronym, address, applet, b, bdo, big, blockquote, body, caption, center, cite, code, dd, del, dfn, div, dt, em, fieldset, font, form, h1, h2, h3, h4, h5, h6, i, iframe, ins, kbd, label, legend, li, noframes, noscript, object, p, pre, q, s, samp, small, span, strike, strong, sub, sup, td, th, tt, u, var
<select> Usage:
- basic select list
<form> <select name="list"> <option>Name your favorite pet <option>dog <option>cat <option>rabbit </select> </form>
- multiple select list
<form> <select name="list" multiple size="3"> <option>Name your favorite pet <option>dog <option>cat <option>rabbit </select> </form>
<select> Special Notes:
- Use the select list to keep larger lists of choices more readily available.
- Items that are hidden in a select list are less usable, becuase your readers are less likely to see them.
More <select> Information:
Return to XHTML Element (HTML Tags) Library
Source...