Contact Number
Email Address

optgroup

optgroup

Definition and Usage

The <optgroup> is used to group related options in a drop-down list. The HTML <optgroup> tag is used for grouping related options within your select list. This makes it easier for users to comprehend their choices when looking at a large list.

Syntax

<select>
<optgroup label="">
  <option value =""></option>
  <option value =""></option>
</optgroup>
<optgroup label="">
  <option value =""></option>
  <option value =""></option>
</optgroup>
</select>