What is optgroup label?
It is an HTML tag that is used to group the options given in <select> tag. This combines the options in different groups having different labels.
If we need to add an image before optgroup label using bootstrap than we have to put “image” tag in label giving the source location of the image with the label name.
Example: The following example demonstrates the optgroup having image before label using Bootstrap.