HTML - Tags - <select>

#116 of 147
select

 <html>
 <body>
     <select name="ContactReason" value="question">
         <option value="question">Ask a question</option>
         <option value="bug">Report a bug</option>
         <option value="feedback">Send feedback</option>
     </select>
 </body>
 </html>
 

The select element creates a drop down list of options, commonly referred to in Windows programming as a Combo Box.

A live example:



See also: option datalist

N of

Ads by Google


Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath