HTML Text Format

Text formatting tags are used to change the appearance of text. With the help of formatting tags, we can make text bold, italic, add quotation and much more.

Following are the Text Formatting Tags.

<b> Tag

The content written, between <b> and </b> tag displays in bold letter.

Example

<b> This is Bold Text </b>

This is Bold Text

<i> Tag

The content written, between <i> and </i> tag displays in the italic format.

Example

<i> This is Italic Text </i>

This is Italic Text

<u> Tag

The content written, between <u> and </u> tag displays an underline under the content base.

Example

<u> This text has underline. </u>

This text has an underline.



<strong> Tag

The content written, between <strong> and </strong> tag displays in bold format.

Example

<strong> This text strong format text. </strong>

This text strong format text.

<q> Tag

The content written, between <q> and </q> tag displays within short quotation.

Example

<q> This text comes within short quotation. </q>

This text comes within short quotation.

<sup> Tag

Sup tag defines Superscript text. The content written, between <sup> and </sup> tag displays half the character from the top.

Example

21<sup>st</sup>

21st

<sub> Tag

Sub tag defines subscript text. The content written, between <sub> and </sub> tag displays half the character below the baseline.

Example

H<sub>2</sub>O

H2O

<del> Tag

The content written, between <del> and </del> tag displays as deleted from the document.

Example

The leader of this group is <del>John</del> Smith.

The leader of this group is John Smith.







Read more articles


General Knowledge



Learn Popular Language