<select></select>

106 32
<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:
  • 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...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.