Basic Tags Used in HTML
HTML Tags are described the html documents.
1. <!DOCTYPE>
DOCTYPE is define the document type.
2.<HTML>
3.<title>
5.<Body>
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 :
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>
7.<P>
It is used to define a paragraph in an HTML Document.
Example :
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>
8. <Hr>
The Horizontal Line is defined in the HTML Document.
Example :
Output :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>
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>
0 Comments