The community is working on translating this tutorial into Spanish, but it seems that no one has started the translation process for this article yet. If you can help us, then please click "More info".
If you are fluent in Spanish, then please help us - just point to any untranslated element (highlighted with a yellow left border - remember that images should have their titles translated as well!) inside the article and click the translation button to get started. Or have a look at the current translation status for the Spanish language.
If you see a translation that you think looks wrong, then please consult the original article to make sure and then use the vote button to let us know about it.
Please help us by translating the following metadata for the article/chapter, if they are not already translated.
If you are not satisfied with the translation of a specific metadata item, you may vote it down - when it reaches a certain negative threshold, it will be removed. Please only submit an altered translation of a metadata item if you have good reasons to do so!
The drop down lists is another way to give the user the opportunity to choose just one of a series of choices. When would you use the drop down list? As the first item on the list is normally the default choice, using the drop down list can been a good choice when you know that a specific option is often chosen over the other options. The drop down list should only be used when the user has to choose between the options as the drop down list does not gives the user opportunity not to choose anything (such as radio-buttons do).
The drop down lists are defined by the <select> element and the values being sent to you (either via email or to your database) are defined by the value attribute.
<form method="post"> <select name="Icecream Flavours"> <option value="double chocolate">Double Chocolate</option> <option value="vanilla">Vanilla</option> <option value="strawberry">Strawberry</option> <option value="caramel">Caramel</option> </select> </form>
If you want another item to be selected instead of the first one on the list, you use the selected attribute. HTML5 allows you to shorten you markup when using the selected attribute, so instead of writing
<option value="strawberry" selected="selected">Strawberry</option>
You can write it like this:
<form> <select name="Icecream Flavours"> <option value="double chocolate">Double Chocolate</option> <option value="vanilla">Vanilla</option> <option value="strawberry" selected>Strawberry</option> <option value="caramel">Caramel</option> </select> </form>