HTML very useful tags optgroup, sub, sup, and BDO sample code

Time:2021-9-12

Optgroup is used in the select tag to make the contents of the drop-down list more organized

Copy code

The code is as follows:

<select>
<optgroup label=”aaa”>
< option > distinguish right from wrong < / option >
< option > distinguish right from wrong < / option >
< option > distinguish right from wrong < / option >
</optgroup>
<optgroup style=”color:#C30″ label=”bbb”>
< option > distinguish right from wrong < / option >
< option > distinguish right from wrong < / option >
< option > distinguish between right and wrong < br / > < / option >
</optgroup>
</select>

Sub superscript
The sup subscript can be used with < EM > for annotation
Dbo dir tag can be used together to change the output direction of text, right – > left


Tip: you can modify some code before running