HTML select Label - List of choice - HTML form - Guide to HTML, XHTML Guide

Change Font Size: / / Directory List

10.4.1 HTML select labels

Select labels - Select List labels
  • Select the label is paired to <select> began to </ select> end
  • That the label of each option on behalf of a label options
  • Attribute:
    • Common - general attributes
    • Size - Select a high degree of domain
    • Multiple - can have more than one 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_select/

Description:

Multi-domain election can hold down the "Ctrl" button, and click on the option of a multi-choice, or holding down the "Shift" for a number of elections

Example

  "nt22form" Action <form id = = = "nt22.php" method "post" /> <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> <option> generally like it, but also work hard to </ option> <option > There are many problems, but can also </ option> </ select> </ fieldset> <fieldset> <legend> NT22 Tutorial you want to learn programming language: </ legend> <label for "multipleselect" => you NT22 Tutorial want to learn the programming language </ label> <select size = "10" multiple "multiple" id = = = "multipleselect" "multipleselect" name> <option> XHTML </ option> <option> CSS </ option> <option> JAVASCRIPT </ option> <option> XML </ option> <option> PHP </ option> <option> C # </ option> <option> JAVA </ option> <option> C + + </ option> <option> PERL </ option> </ select> </ fieldset> </ form> 

HTML select examples of labels