HTML Headings and Paragraphs

HTML headings are the title and sub title for webpage. There are total six types of heading elements in HTML. (h1, h2, h3, h4, h5 and h6)

h1 is the highest level of element and h6 is lowest. 

HTML Paragraphs <p> tag defines a paragraph in a webpage. It is blocks of text.

Copy the below HTML code into Notepad:

<!DOCTYPE html>
<html>
<head>
<title> My First HTML Page</title>
</head>
<body>
 
<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4</h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>

<p>My First Paragraph.</p>
<p>My Second Paragraph.</p>
 
</body>
</html>

 

Final output will show following result:

My First HTML Page

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

My First Paragraph.

My Second Paragraph.

Leave a Reply

Your email address will not be published.