Monday, July 29, 2013

[PART-2] HTML : Tags



Read my previous tutorial of HTML for better understanding of HTML

Today I will tell more about HTML tags and there uses. In my  previous tutorial of HTML I said that there are some tags which doesn't need closing tag  such type of tags are called unpaired tags or self-closing tags for example :- <hr> and <br>.


Now we will discuss some HTML tag :-


  • <h1></h1> this tag is used to show the heading,  we can define this tag from <h1> to <h6>, priority of <h1></h1> is higher and <h6></h6> is less.
  • <hr> this tag is used to create the horizontal.<br> this tag is used to create line break.
  • <!-- Comment --> tag this is used to define comment, anything written in this tag will not be displayed on webpage.
  • <p> this tag is used to create the paragraph.
  • <b> this tag is used to give bold style to the text.
  • <i> this tag is used to give italic style to the text.
HTML Code :-



<html>

<head>
<title>My First HTML Page</title>
</head>
<body>
<h1>This is written using the heading 1 tag.</h1>
<h2>This is written using the heading 2 tag.</h2>
<h3>This is written using the heading 3 tag.</h3>
<h4>This is written using the heading 4 tag.</h4>
<h5>This is written using the heading 5 tag.</h5>
<h6>This is written using the heading 6 tag.</h6>
<br>
<p>Before this br tag is used for line break and this paragraph is written using the paragraph tag.</p>
<hr>This horizontal line is create using the hr tag.

<i><b><p>In this bold and italic tag is used</b></i></p>
<!-- This tag will not be displayed on webpage -->
</body>
</html>



Now see the below video to learn the use of these tags :-



0 comments:

Post a Comment