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

Change Font Size: / / Directory List

10.4.3 HTML optgroup labels

Optgroup labels - representative of the type of sub-options (such aliases can not choose)
  • Optgroup the label is paired to <optgroup> began to </ optgroup> end
  • Attribute:
    • Common - general attributes
    • Label - the options
  • Trackback Address: http://www.nt22.com/xhtml-html/tag_optgroup/

Example

  <form Action "nt22.php" method = = = "nt22form" "post" id> = <label for "WebDesign" /> Choose a NT22 Tutorial you want to learn most of </ label> <select id = "WebDesign" name = "WebDesign" /> "client" <optgroup label => "HTML" <option value => HTML </ option> "CSS" <option value => CSS </ option> "javascript" <option value => javascript </ option> </ optgroup> "server" <optgroup label => "PHP" <option value => PHP </ option> "ASP" <option value => ASP </ option> "JSP" <option value => JSP < / option> </ optgroup> "database" <optgroup label => "Access" <option value => Access </ option> "MySQL" <option value => MySQL </ option> "SQLServer" <option value => SQLServer </ option> </ optgroup> </ select> </ form> 

Examples of HTML optgroup labels