Home  >  Article  >  Web Front-end  >  HTML select optgroup group tag_html/css_WEB-ITnose

HTML select optgroup group tag_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:41:091202browse

optgroup tag -- represents the category name of the group selection (this category name cannot be selected)

  • optgroup tags are in pairs Appears, starting with 5b7a15bed8615d1b843806256bebea72 and ending with bc2752b74169f27a1fb12a4976198c73
  • Reference URL: http://www.dreamdu.com/xhtml/tag_optgroup/
  • attribute.
  • common -- public attributes
  • disabled -- the input field cannot get focus, cannot be selected, is displayed in gray, and has no effect in the form
  • label -- option group The tag
  • opt is the abbreviation of option, which means "option" in Chinese. group, Chinese "group
  • Example:

    <form action="dreamdu.php" method="post" id="dreamduform">    选择一个你在梦之都最想学的    <select id="WebDesign" name="WebDesign">        <optgroup label="client">            <option value="HTML">HTML</option>            <option value="CSS">CSS</option>            <option value="javascript">javascript</option>        </optgroup>        <optgroup label="server">            <option value="PHP">PHP</option>            <option value="ASP">ASP</option>            <option value="JSP">JSP</option>        </optgroup>        <optgroup label="database">            <option value="Access">Access</option>            <option value="MySQL">MySQL</option>            <option value="SQLServer">SQLServer</option>        </optgroup>    </select></form>

    Reprint source: http://www.dreamdu .com/xhtml/tag_optgroup/

    Statement:
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn