9 months ago|
Tech

Common HTML Formatting Tags with Examples

A list of commonly used HTML formatting tags with syntax and output examples. Useful for beginners learning how to style text in web development.

Editor

Author at Billianz

  • Jun 18, 2025
  • 5 min read
  • 12

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²



No comments yet

Be the first to share your thoughts!

Your Views Please!

Your email address will not be published. Required fields are marked *

You may also like