select

select
HTML select Element
The HTML <select> element is usually applied in form creation when we desire a drop down selection list for users to choose a value from. The <option> element is placed inside of the <select> element to render the choices for the user to select a value from. When the form is submit you can use something like PHP to process the name attribute [ key->value ] set to access what the user chose for that form component, then email it or send to a database for storage.

HTML CODE EXAMPLE
Choose Instrument:
<select name="instrument">
<option value="Guitar">Guitar</option>
<option value="Harp">Harp</option>
<option value="Piano">Piano</option>
<option value="Trumpet">Trumpet</option>
</select>
 
Choose Instrument: 

Related Posts :

  • figure figure NOTE: This new element is HTML5 and will be a standardized element in 2014. The HTM… Read More...
  • figcaption figcaption NOTE: This new element is HTML5 and will be a standardized element in 2014. The… Read More...
  • footer footer NOTE: This new element is HTML5 and will be a standardized element in 2014. The HTM… Read More...
  • embed embed NOTE: This new element is HTML5 and will be a standardized element in 2014. The … Read More...
  • fieldset fieldset The HTML <fieldset> element is usually used within the <form> ele… Read More...

0 Response to "select"

Post a Comment