10.4.2 HTML option Label option Tag--an option in the Select menu
- The option tag is paired up to start to
<option>
</option>
end
- Citation URL: http://www.dreamdu.com/xhtml/tag_option/
- Property.
- Common--public properties
- Disabled-the input field does not have focus, cannot be selected, is grayed out and does not play any role in the form
- Label--Select a short label for the item
- Value--The initial value of the option, when not set to the content in the option tag
- Selected--option is pre-selected
- option, Chinese "options"
Example
<formAction= "dreamdu.php"Method= "POST"ID= "Dreamduform">your feelings for the dream capital:<Selectsize= "1"ID= "Select"name= "Select"> <optionvalue= "Best">Very comprehensive, very good</option> <optionvalue= "Better">In general, but also to strive to</option> <optionvalue= "good">There are a lot of questions, but you can</option> </Select>programming languages you want to learn in the dream capital:<Selectsize= "Ten"multiple= "multiple"ID= "Multipleselect"name= "multipleselect[]"> <optionvalue= "1">Xhtml</option> <optionvalue= "2"selected= "Selected">Css</option> <optionvalue= "3">Javascript</option> <option>Xml</option> <optionvalue= "5">Php</option> <optionvalue= "6">C#</option> <optionvalue= "7"selected= "Selected">Java</option> <optionvalue= "8">C++</option> <optionvalue= "9">Perl</option> </Select></form>
HTML option Tag Example--You can try to edit
Description
Note In the example multipleselect[]
XML
above, you can try to modify the above example
Implement drop-down boxes with HTML select+option tags