HTML option labels - List of choice - HTML form - Guide to HTML, XHTML Guide

Change Font Size: / / Directory List

10.4.2 HTML option labels

Option labels - representatives of a select list of options
  • Paired option is the label to <option> began to </ option> end
  • Attribute:
    • Common - general attributes
    • Label - the options
    • Value - the value of the options
    • Selected - This choice has been the choice
    • Disabled - input box can not be the focus, not chosen to grey, in the form can not afford any role
    • Tabindex - "tab" key to the order of traversal
  • Trackback Address: http://www.nt22.com/xhtml-html/tag_option/

Example

  <form Action "nt22.php" method = = = "nt22form" "post" id> <fieldset> <legend> you feel NT22 Tutorial: </ legend> <label for "select" => you to the NT22 Tutorial feeling </ label> <select size "1" id = = = "select" "select" name> <option> very comprehensive, very good </ option> = "selected" <option selected> generally like it, but also work hard to < / option> <option> a lot of problems, but can also </ option> </ select> </ fieldset> <fieldset> <legend> NT22 Tutorial you want to learn the programming language: </ label for legend> <= "multipleselect" /> NT22 Tutorial you want to learn the programming language </ label> <select size = "10" multiple "multiple" id = = = "multipleselect" "multipleselect" name> = "selected" <option selected> XHTML </ option> <option> CSS </ option> <option> JAVASCRIPT </ option> <option> XML </ option> = "selected" <option selected> PHP </ option> <option> C # </ option> < option> JAVA </ option> <option> C + + </ option> <option> PERL </ option> </ select> </ fieldset> </ form> 

Examples of HTML option labels