HTML TEXT FORMATING


  • Formatting text is very essential for web sites.
  • One of its uses is to help readers know the important parts a web content easily.
  • Elements for Formatting Text

All of the elements listed below are inline elements.

  • <b>: bolds a text
  • <i>: italicizes a text
  • <u>: underlines a text
  • <code>: defines a text as a code
  • <tt> typewriter text
  • <small>: makes a text smaller on the browser
  • <em>emphasizes a text, may be italicized depending
  • <strong> emphasizes a text, may be boldened depending on the browser 
  • <mark> : marks a text like a highlighting pen
  • <q> : enquotes a Text.
Example:

<b>I am a bolded text.</b> <br /> 


<i>I am an italic text</i> <br />


<em>I am a an emphasized text.</em> <br />


<strong>I am a strong text.</strong> <br />


<mark>I am a marked text.</mark>


<mark>I am a marked text.</mark> <br />


<q>I am an enquoted text.</q> <br /> 


<s>I am a striked text.</s> <br />


<b><i><u><mark><q> I am a mixed formatted text.</b></i.</u></mark></q>


Output:


I am a bolded text.


I am an italic text


I am an underlined text.


I am a code text.


I am a typewriter text. 


I am a small text.


I am a an emphasized text.


I am a strong text.


I am a marked text.


"I am an enquoted text."


Lam a striked text.


"I am a mixed formatted text".