How to add image before optgroup label using Bootstrap ?
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.
Attention reader! Don’t stop learning now. Get hold of all the important Comcompetitivepetitve Programming concepts with the Web Design for Beginners | HTML course.