Formatting Elements

Formatting elements are designed to display special types of text:

  • <b>-Bold text
  • <strong> - Important text
  • <i> - Italic text
  • <em> - Emphasized text
  • <mark> - Marked text
  • <small>- Smaller text
  • <del> - Deleted text
  • <ins> - Inserted text
  • <sub> - Subscript text
  • <sup>- Superscript text

HTML <b> and <strong> Elements

The <b> element defines bold text without any extra importance. The <strong> element highlights text semantically as important.

Example:

This text is bold.

This is strong text.

HTML <i> and <em> Elements

The <i> element defines text in italic, while the <em> element emphasizes important text.

Example:

This text is italic.

This text is emphasized.

HTML <small> and <mark> Elements

The <small> element defines smaller text, while the <mark> element highlights text as marked or important.

Example:

This is some smaller text.

Do not forget to buy milk today.

HTML <del> and <ins> Elements

The <del> element defines deleted text (usually struck through), and the <ins