Edit

HTML optgroup Tag

The HTML <optgroup> tag is used to create group related options in a drop-down list. With this tag User can easily identify about list items.

Example of Code

<select name="City">
    <optgroup label="Australia">
        <option value ="sydney">Sydney</option>
        <option value ="melbourne">Melbourne</option>
        <option value ="brisbane">Brisbane</option>
    </optgroup>
</select>

Output