Basic Tags Used in HTML


HTML Tags are described the html documents.


1. <!DOCTYPE>


DOCTYPE is define the document type.

2.<HTML>


Define an HTML document.

Example : 


3.<title>


Title define a title for the document.

Example : 

4.<Head>


The HTML document is written by head element.

Example : 

5.<Body>


Body tag the contain the contents of the document.

Example :

6. <H1> to <H6>


Headings are defined in the HTML Document by the Heading Element. Headings can be created in HTML from H1 to H6 Level.

Example : 

 <!DOCTYPE HTML>


<html>


<head>


<title> Heading Example </title>


</head>


<body>


<h1> This is heading 1 </h1>


<h2> This is heading 2 </h2>


<h3> This is heading 3 </h3>


<h4> This is heading 4 </h4>


<h5> This is heading 5 </h5>


<h6> This is heading 6 </h6>


</body>



</html>


Output :

7.<P>


It is used to define a paragraph in an HTML Document.

Example :


 <!DOCTYPE HTML>


<html>


<head>


<title> Paragraph  Example </title>


</head>


<body>


<p>This is example of paragraph </p>


<p> This is second example of paragraph </p>




</body>


</html>

Output :

8. <Hr>


The Horizontal Line is defined in the HTML Document.

Example :


<!DOCTYPE HTML>


<html>


<head>


<title> Horizontal Line Example </title>


</head>


<body>


<p> This is a example of Horizontal Line </p>

<hr>


<p> This is second example of Horizontal Line </p>


</body>


</html>



Output :

9. <Br>


The <Br> element is used to give Single Line Break.

Example :


<!DOCTYPE HTML>


<html>


<head>


<title> Single  Line Break Example </title>


</head>


<body>


<p> This is a <br>

 example of <br>

 Single  Line <br>

  Break</p>


</body>


</html>






Output :