The …. tag helps to group related choices when we have a long list of options to select from the drop-down list created using the tag.
<select>
<optgroup>
<option>……</option>
</optgroup>
<optgroup>
<option>……</option>
</optgroup>
</select>
Attribute | Value | Description |
disabled | disabled | Specifies that an option-group should be disabled |
label | text | Specifies a label for an option-group |
Latest posts by vikashdev k (see all)
- PHP OOP: Traits - October 25, 2021
- PHP OOP: Late Static Binding - October 25, 2021
- PHP OOP : Static Members - October 23, 2021