Introduction to selectoptgroup label in html _ HTML/Xhtml _ webpage Creation

Source: Internet
Author: User
The select content needs to be grouped by chance. In the past, it was controlled by a program. Today, we found that the optgroup attribute in the select statement can be used as follows, if you are interested, you can refer to the occasional need to group the select content. In the past, program control was used. Today, we found that there is an optgroup attribute available in the select statement.

Tested for firefox, ie, and other browsers. Currently, the only drawback is that the title style after the group cannot be customized. For example, if you want to change the font attribute, you cannot use a normal body, but you can change the color and size. In ie, italics and bold words are used by default.


The Code is as follows:


Select brand A AC BMW A Aston Martin A Audi B buss B Porsche B Baojun BMW B B Beijing Automobile B. BAIC weiwang B Beiqi Manufacturing B Benz

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.