|
|
HTML Forms - Select
Select
The
<select> element is used to create drop down lists, and each item of the list is an <option> element. While they can be confusing (and long) at first, the select element is actually one of the most simple input elements, as there is very little variation: almost all the select elements you create will follow the same structure:<select name="codelanguage"> <option value="html">HTML</option> <option value="php">PHP</option> <option value="css">CSS</option> <option value="java">JAVA</option> </select>
And that really is just about all there is to the select element; you can use
selected="yes" to preselect an element, and can use the size="" attribute to have a selection in a list rather than a drop-down.Page Responses
Currently there have been no responses to this page...
If you have anything to contribute to this tutorial, found a bug, or know a better way of achieving the same goal, please leave your response below.
|