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

HTML select optgroup group tag_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:41:09
Original
1249 people have browsed it

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

  • optgroup tags are in pairs Appears, starting with and ending with
  • 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>
    Copy after login

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

    Related labels:
    source:php.cn
    Statement of this Website
    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
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template