Paragraph, Link, Bold, italic



  HTML Paragraph Example
<html>
<body>
<p> This is a paragraph example </p>
<p> My name is Sahil Bhatia</p>
<p> I am a App Developer</p>
<p> I am a good Chess Player </p>
</body>
</html>
Output:-
This is a paragraph example
My name is Sahil Bhatia
I am a Teacher
I am a good Chess Player
Note:- <p> tag defines a paragraph tag. Browser automatically add some space before and after each element
It is necessary </p> paragraph tag start and close paragraph tag</p>
HTML Link Example
<html>
<body>
<a href ="http://www.karantips.blogspot.com">
This is a link </a>
</body>
</html>

OUTPUT

This is a link

HTML Bold Text
<html>
<body>
<b>This is a bold text example.</b>
</body>
</html>   

Output:-  
This is a bold text example

  HTML italic, small, sub and super script Example.
<html>
<body>
 <p> <i> This text is italic</i></p>
<p><small>  This text is small </small></p>  <p>this is <sub> subscript</sub>and <sup> this is superscript</sup>
</body>
</html> 

OUTPUT

This text is italic

This text is small

this is subscript and this is superscript

         Previous page                                          Next page 

No comments:

Post a Comment