Subscript Element Tutorial
<sub>
Introductory Text
The sub element represents subscript text, e.g., below baseline.
- Start tag:
<sub>- End tag:
</sub>
Use Examples
- Example [Basic]:
-
H2O’s damp.
- Code [HTML]:
-
<p>H<sub>2</sub>O’s damp.</p>
- Example [Character Level Footnote (Unsemantic)]:
-
Ocean’s damp. [Note: Ocean dampness is caused by an overabundance of water molecules.]
- Code [HTML]:
-
<p>Ocean’s damp. <sub class="note">[Note: Ocean dampness is » caused by an overabundance of water molecules.]</sub></p>
Content Model/Assigned Attributes
- Element-Type:
- Text-Level [HTML 4.01]
- Phrasing Content [HTML 5]
- Attributes:
</sub>
