HTML Text Formatting Elements



HTML also defines special elements for defining text with a special meaning.


Formatting elements were designed to display special types of text:


  1.  <b> - Bold text
  2.  <strong> - Important text
  3.  <i> - Italic text
  4.  <em> - Emphasized text
  5.  <mark> - Marked text
  6.  <small> - Small text
  7.  <del> - Deleted text
  8.  <sub> - Subscript text
  9.  <sup> - Superscript text


A. HTML <b> and <strong> Elements

The HTML <b> and <strong> element defines bold text, without any extra importance.
                 
               Example:     <p>This <b>text</b> is bold</p>
                               


B. HTML <i> and <em> Elements

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

             Example:     <p>This <i>text</i> is bold</p>


C. HTML <small> Element

The HTML <small> element defines smaller text:
         
           Example:     <p>This <small>text</small> is bold</p>



D. HTML <mark> Element

The HTML <mark> element defines marked or highlighted text:.
       
           Example:     <p>This <mark>text</mark> is bold</p>


E. HTML <del> Element

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

           Example:     <p>This <del>text</del> is bold</p>


F. HTML <sub> Element

The HTML <sub> element defines subscripted text. 

          Example:     <p>This <sub>text</sub> is bold</p>


G. HTML <sup> Element

The HTML <sup> element defines superscripted text.

          Example:     <p>This<sup> text</sup> is bold</p>