当前位置: 首页 > 网络学院 > 网页制作基础教程 > HTML > HTML <sub> 和 <sup>
The <sub> tag defines subscript text. The <sup> tag defines superscript text.
<sub>标签可定义文字的下标,<sup>标签则可以定义文字的上标
NONE
无
代码 | 输出结果 |
---|---|
This text contains <sub>subscript</sub> This text contains <sup>superscript</sup> | This text contains subscript This text contains superscript |
id, class, title, style, dir, lang, xml:lang |
For a full description, go to Standard Attributes.
查看完整的属性
onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup |
For a full description, go to Event Attributes.
查看完整的属性
Subscript and superscript
How to use the sub and sup elements.
如何使用sub和sup元素