Text Formatting

<b>:

  • This tag creates bold text.
Example:
<p>Make me <b>bold</b></p>

This will produce the following result −

b tag

<strong>:

  • This tag makes text bold and used to emphasize a point.
Example:
<p>Make me <strong>important bold</strong> text</p>

This will produce the following result −

strong tag

<i>:

  • This tag creates italic text.
Example:
<p>Make me <i>italic</i></p>

This will produce the following result −

i tag

<em>:

  • This tag also creates italic text and used to emphasize a point.
Example:
<p>Make me <em>important italic</em> text</p>

This will produce the following result −

em tag

<q>:

  • This element is used to put some text in double quotes.
Example:
<P>Put me in <q>quotes</q></p>

This will produce the following result −

q tag

<blockquote>:

  • This element is used to display some passage from other source.
Example:
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Sequi, ipsum.</p>
<blockquote> some passage from other source <blockquote>

This will produce the following result −

blockquote tag

<sub>

  • This element is used to display a character or a number as base of other character.
Example:
x<sub>2</sub>

This will produce the following result −

sub tag

<sup>

  • This element is used to display a character or a number as power of other character.
Example:
x<sup>2</sup>

This will produce the following result −

sup tag