「html入門」optgroup要素のサンプル
説明
ウェブフォームにおいて <select> 要素内の、選択肢 (<option>) のグループを作成します。
使用例
<label for="ddselect">Select item :</label>
<select id="dino-select">
    <optgroup label="optA">
        <option>A001</option>
        <option>B002</option>
        <option>C003</option>
    </optgroup>
    <optgroup label="optB">
        <option>D004</option>
        <option>E005</option>
        <option>F006</option>
    </optgroup>
</select>