The <sub>
tag defines subscript text. Subscript text appears half a character below the normal line, and is sometimes rendered in a smaller font. Subscript text can be used for chemical formulas, like H2O.
Tip: Use the <sup> tag to define superscripted text.
Element | |||||
---|---|---|---|---|---|
<sub> | Yes | Yes | Yes | Yes | Yes |
The <sub>
tag also supports the Global Attributes in HTML.
The <sub>
tag also supports the Event Attributes in HTML.
HTML tutorial: HTML Text Formatting
HTML DOM reference: Subscript Object
Most browsers will display the <sub>
element with the following default values:
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!