HTML uncommon tags optgroup, sub, sup and bdo example code

HTML uncommon tags optgroup, sub, sup and bdo example code
Optgroup is used in the select tag to make the drop-down list content 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<br/>right from wrong</option>
</optgroup>
</select>

sub superscript
The sup subscript can be used with <em> for annotations
Used together with the dbo dir flag, you can change the output direction of text, right -> left


Tip: You can modify some of the code before running

<<:  How to use JavaScript to implement sorting algorithms

>>:  Comparative Analysis of MySQL Binlog Log Processing Tools

Recommend

Realizing the effect of carousel based on jQuery

This article shares the specific code of jQuery t...

Detailed Analysis of or, in, union and Index Optimization in MySQL

This article originated from the homework assignm...

An article to help you thoroughly understand position calculation in js

Table of contents introduction scroll Element.scr...

Introduction to encryption of grub boot program in Linux

Table of contents 1. What is grub encryption 2. g...

CSS achieves footer "bottom absorption" effect

We often encounter this problem: how to use CSS t...

Example of implementing the skeleton screen of WeChat applet

Table of contents What is a skeleton screen How t...

Example of Html shielding right-click menu and left-click typing function

Disable right-click menu <body oncontextmenu=s...

Detailed explanation of anonymous slots and named slots in Vue

Table of contents 1. Anonymous slots 2. Named slo...

CSS implements 0.5px lines to solve mobile compatibility issues (recommended)

【content】: 1. Use background-image gradient style...

WebStorm cannot correctly identify the solution of Vue3 combined API

1 Problem Description Vue3's combined API can...

A brief talk about MySQL semi-synchronous replication

Introduction MySQL achieves high availability of ...

Introduction to installing and configuring JDK under CentOS system

Table of contents Preface Check and uninstall Ope...

How to manage users and groups when running Docker

Docker is a management tool that uses processes a...