In HTML, formatting tags are used to style text content. Here's a list of common formatting tags with examples:
1. <u> – Underlined Text
Adds underline to text.
<u>This is underlined text</u>
**Output:** This is underlined text
2. <small> – Smaller Text
Reduces the size of the text.
<small>This is small text</small>
**Output:** This is small text
3. <del> – Deleted Text
Shows text as deleted (strikethrough).
<del>This text is deleted</del>
**Output:** This text is deleted
4. <ins> – Inserted Text
Shows inserted text (usually underlined).
<ins>This is inserted text</ins>
**Output:** This is inserted text
5. <sub> – Subscript Text
Displays text slightly below the baseline.
H<sub>2</sub>O
**Output:** H₂O
6. <sup> – Superscript Text
Displays text slightly above the baseline.
E = mc<sup>2</sup>
**Output:** E = mc²