HTML Text Formatting

HTML Text Formatting is used for to format the text for better look and feel. HTML provides many text formatting tags.

You can format text without using CSS. HTML formatting tags are used to make text bold, italic, or underlined.

HTML uses <b> or <i> for formatting output, like bold or italic text.

Formatting elements are designed to display special type of text:

<b> or <strong> - Bold Text

<i> Italic text

<em> Emphasized text

<mark> Marked text

<small> Small text

<del> Deleted text

<ins> Inserted text

<sub> Subscript text

<sup> Superscript text

<b> Elements:

The HTML <b> element defines bold text, without any extra importance.

Example
<b> This is the bold</b>

<strong> Elements:

The HTML <strong> element defines strong text, with added semantic "strong" importance.

Example
<strong>This is strong text</strong>

The HTML <em> element defines emphasized text, with added semantic importance.