Home HTML Tutorial for beginners 7 HTML formatting elements

7 HTML formatting elements


HTML formatting elements define text with a special formatting and in some cases with a special importance. Let us discuss the list of HTML formatting elements and their uses.

  • <b> – Bold text
  • <strong> – Bold text with importance
  • <i> – Italic text
  • <em> – Emphasized (Italic) text with importance
  • <mark> – Marked text
  • <big> – Big text
  • <small> – Small text
  • <del> – Deleted text
  • <ins> – Inserted text
  • <sub> – Subscript text
  • <sup> – Superscript text

let us write a program to demonstrate the formatting elements.

      <title>Program to demonstrate p tag</title>
      <p><b>Bold Text</b></p>
      <p><strong>Strong Text</strong></p>
      <p><i>Italic Text</i></p>
<p><em>Emphasized Text</em></p>
<p><mark>Marked Text</mark></p>
<p><big>Big Text</big></p>
<p><small>Small Text</small></p>
<p><del>Deleted Text</del></p>
<p><ins>Inserted Text</ins></p>
<p>subscript text A<sub>2</sub></p>

      <p>Superscript text H<super>2</super>O</p>

Output on browser for <strong> and <b> are same and for <i> and <em> are same. But <strong> and <em> indicates that the text are more important.

Check your progress :

Q) b and strong tag gives the same output.

  • True
  • False

Q) strong and em elements has more importance then b and i.

  • True
  • False



Please enter your comment!
Please enter your name here