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 helps you to format text in different ways.

HTML Formatting Tags List

Formatting TagsExample & Syntax
Bold & Strong Tag<b>Sample 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 text is normal.
<b>Here text is bold.</b>

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

Here text is normal.
<strong>Here text is strong</strong>

HTML Italic and Emphasized Text Formatting

HTML Italic Tag: The HTML <i> element defines italic text, without any extra importance.

mple of Italic Text FormattingXHTML
Text is normal.
<i>Text is italic</i>
1
2
Text is normal.
<i>Text is italic</i>

HTML Emphasised Tag: The HTML <em> element defines emphasised text, with added semantic importance.

Text is normal.
<em>Text is emphasized</em>

HTML Small Text Formatting

The HTML <small> element defines small text.

This is normal text
<small>This is Small Text</small>

HTML Big Text Formatting

The HTML <small> element defines bigger text. All text placed between this tag will have bigger text as compared to normal.

This is normal text
<big>This is Big Text</big>
Note: Note: The big element is not supported in HTML5.

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
<mark>This is Marked or Highlighted Text</mark>

HTML Deleted Text Formatting

The HTML <del> element defines deleted (removed) text.

This is normal text
<del>This is Deleted or Removed Text</del>

HTML Inserted Text Formatting

The HTML <ins> element defines inserted (added) text.

This is normal text
<ins>This is Inserted or Added Text</ins>

HTML Subscript Text Formatting

The HTML <sub> element defines sub-scripted text.

This is normal but this is text
This is <sub> sub-scripted Text</sub>

HTML Superscript Text Formatting

The HTML <sup> element defines super-scripted text.

This is normal but this is text
This is <sup> super-scripted Text</sup>

Congratulations! Chapter Finished. Learn more about the similar topics:
Exercises & Assignments
No Content Found.
Interview Questions & Answers
No Content Found.