HTML Formatting

If you have ever used a word document like MS-word than, you must be familiar with the ability to make text bold, italicized, or underlined. There are ten options available to indicate how text can appear in HTML and XHTML.

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

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

Formatting elements were designed to display special types of text:

  • <b> - Bold text  E.g : -   I am Bold
    <b> This is bold text </b>
  • <strong> - Important text   E.g, :-   I am strong.
    <strong> This is bold text with added semantic "strong" importance.</strong>
  • <i> - Italic text  E.g :-  I am italic
    <i> This text is italic or cursive </i>
  • <em> - Emphasized text E.g :-  I am emphasized.
    <em> This is italic / emphasized text, with added semantic importance. <em>
  • <mark> - Marked text E.g :-  I am highlighted text.
    <p> This element defines <mark>marked</mark> or <mark>highlighted </mark> text </p>
  • <small> - Small text E.g :-  I am small in size
    <p> This makes text size <small>Smaller</small> with respect to parent element. Which is "p" (paragraph) here. </p>
  • <del> - Deleted text E.g :-  I am deleted text
    <p>This element defines <del>deleted</del> (removed) text.
  • <ins> - Inserted text  E.g, I am inserted text
    <p>This element defines <ins> inserted </ins> (added) text.</p>
  • <sub> - Subscript text    E.g :-  I am subscript text
    <p> This element defines <sub>subscripted</sub> text. </p>
  • <sup> - Superscript text E.g :-  I am superscript text
    <p>This element defines <sup>superscripted</sup> text. </p>


Loading ...

Related Results :

  1. HTML Formatting
Note :
  • Related Posts are generally User Blog posts.
  • or Other tutorials from other networks of
  • Any registered user can create related posts based on search term tags.

About the Author