Heading Tag, Image in HTML

There are six heading tags in HTML. < h1>, <h2>, <h3>, <h4>, <h5>, <h6>. <h1> is most used for heading of the tittle. < h1> size is big, <h2> size is less then <h1> heading tag 1. < h6> is smallest size in HTML. see this example. I will try to explain it. Browser automatically add some empty space in before and after each heading
Heading Tag in HTML
<html>
<body>
<h1>This is a heading 1</h1>
<h2>This is a heading 2</h2>
<h3>This is a heading 3</h3>
<h4>This is a heading 4</h4>
<h5>This is a heading 5</h5>
<h6>This is a heading 6</h6>
</body>
<html>
OUTPUT

This is a heading 1

This is a heading 2

This is a heading 3

This is a heading 4

This is a heading 5
This is a heading 6
Note :- In heading tag must be written in <h1>, <h2> and close in </h1> , <h2> etc. Not write in <heading 1> This is a example of heading 1</heading 1>. This is a wrong.
Heading and Paragraph Both use In HTML example
<html>
<body>
<h3>My third Heading</h1>
<p>This is a Paragraph Example.</p>
</body>
</html>


OUTPUT
 My third Heading

This is a Paragraph Example

Image Example in HTML
<html>
<body>
<img src="home.png" width="104" height="142">
</body>
</html>


 





Note:-  In Image It it necessary to same folder html file and image. 
Means Both html file and image in same location. Other wise your image not open. For another drive how to open image. Click next page and see  example
Previous page                                                Next page

No comments:

Post a Comment