HTML Text Formatting
HTML Text Formatting
HTML provides formatting tags to make text bold, italic, underlined, highlighted, and more. These tags help emphasize important content.
Common Formatting Tags
| Tag | Purpose |
|---|---|
<b> |
Bold text |
<strong> |
Important text (bold with meaning) |
<i> |
Italic text |
<em> |
Emphasized text (italic with meaning) |
<u> |
Underlined text |
<mark> |
Highlight text |
<small> |
Smaller text |
<del> |
Deleted/strike-through text |
<ins> |
Inserted text (usually underlined) |
<sub> |
Subscript text |
<sup> |
Superscript text |
Example Code
Output Preview
-
Bold text
-
Italic text
-
Deleted text -
Highlighted text
-
Subscript and superscript (like H₂O or 2⁵)
These formatting tags help improve readability and highlight important information in your webpage.
