sup标签:文字得到上标;sub标签:文字的下标
<html>
<head>
<title></title>
<meta charset="utf-8">
</head>
<body>
(11111111)<sub>2</sub>=1*2<sup>7</sup>=1*2<sup>6</sup>=1*2<sup>5</sup>=1*2<sup>4</sup>=1*2<sup>3</sup>=1*2<sup>2</sup>=1*2<sup>1</sup>=1*2<sup>0</sup>=255<br>
二氧化碳的化学式:CO<sub>2</sub><br>
水的化学式:H<sub>2</sub>O
</body>
</html>
显示效果: