HTML Formatting
HTML Formatting
HTML Formatting tags are used to format the appearance of the text on your web page.
When you use MS Word processor, you format text as bold, italic, or underlined. Similarly, HTML Formatting tags help you to format text in different ways.
HTML Formatting Tags List
Formatting Tags | Example & Syntax |
---|---|
Bold & Strong Tag | Text</b> <strong>Sample Text</strong> |
Italic & Emphasized Tag | <i>Sample Text</i> <em>Sample Text</em> |
Small Tag | <small>Sample Text</small> |
Big Tag | <big>Sample Text</big> |
Marked (Highlighted) Tag | <mark>Sample Text</mark> |
Deleted (Removed) Tag | <del>Sample Text</del> |
Inserted (Added) Tag | <ins>Sample Text</ins> |
Subscript Tag | <sub>Sample Text</sub> |
Superscript Tag | <sup>Sample Text</sup> |
Next, we will cover these HTML Text formatting tags in detail below.
HTML Bold & Strong Text Formatting
HTML Bold Tag: The HTML <b> element defines bold text, without any extra importance.
Here the text is normal.
Here the text is bold.

HTML Strong Tag: The HTML <strong> element defines strong text, with added semantic “strong” importance.
Here the text is normal.
Here text is strong

HTML Italic and Emphasized Text Formatting
HTML Italic Tag: The HTML <i> element defines italic text, without any extra importance.
This text is normal.
Text is italic
The text is normal.
Text is italic

HTML Emphasised Tag: The HTML <em> element defines the emphasized text, with added semantic importance.
The text is normal.
Text is emphasized

HTML Small Text Formatting
The HTML <small> element defines small text.
This is normal text
This is Small Text

HTML Big Text Formatting
The HTML <big> element defines bigger text. All text placed between this tag will have bigger text as compared to normal.
This is normal text
This is Big Text

HTML Marked Text Formatting
The HTML <mark> element defines marked text. All content placed inside this tag will be marked (highlighted).
This is normal text
This is Marked or Highlighted Text

HTML Deleted Text Formatting
HTML <del> element defines deleted (removed) text.
This is normal text
This is Deleted or Removed Text
