HTML Text Formating

How to use text Formatting in HTML?

Steps:

1. Open Notepad and Write HTML code as shown next.
2. Save the file on desktop as textformat.html
3. Double click on saved file.
4. you can see the file on desktop with name textformat.
5. output.

HTML Text Formatting Tag :

<!DOCTYPE HTML>
<HTML>
<HEAD>
    <TITLE>Text Formatting 1</TITLE>
</HEAD>
<BODY>
    <p><b>This is bold</b></p>
    <p><strong>This is Strong</strong></p>
    <p><em>This is emphasized</em></p>
    <p><i>This is Italic</i></p>
    <p><small>This is small</small></p>
    <p>This is<sub>Subscript</sub> and this is<sup>Superscript</sup></p>
</BODY>
</HTML>

Output :

Video Tutorial of HTML Text Formatting :


HTML Text Direction:

Example:
<!DOCTYPE HTML>
<HTML>
<HEAD>
       <TITLE>Text Direction</TITLE>
</HEAD>
<BODY>
      <bdo dir="ltr">
      Hi How are you?
      </bdo>
</BODY>
</HTML>

OUTPUT:

 

HTML  Show DELETED Text:

Example:
<!DOCTYPE HTML>
<HTML>
<HEAD>
    <TITLE>Text del ins</TITLE>
</HEAD>
<BODY>
    <p>Hi How are you <del>Raj</del> Rajesh?
</BODY>
</HTML>

OUTPUT:

Post a Comment

0Comments
Post a Comment (0)