HTML - tags - <option>

#97 of 147
option

 <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 option element creates a value within a select list or an optgroup grouping.

A live example:



N of

Ads by Google

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

© Richard McGrath