HTML select tag


Gender :
<select name="gender"> 
<option value="m">Male</option> 
<option value="f" selected>Female</option> 
</select> 

<select> create a dropdown list.

<option> define options of <select>.

value attribute used for data transfer.

selected : default selected option


Result :
Gender :



Copyright 2014-2017 by DeveloperTut.com. All Rights Reserved.
TwitterGoogle+Facebook