Heading tags

Notes:

HTML heading tags:

HTML has 6 heading tags. Based on the required size of the heading, we use any one of the 6 heading tags to display heading for the document, paragraph, sub paragraph or lists.
html h1 tag : is a paired tag, displays heading in largest possible size.
html h2 to h5 tags: are paired tags, display headings in different sizes.
html h6 tag: is a paired tag, displays heading in smallest possible size.

Example Code:
<html>
<head>
<title>HTML heading tags</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>
</body>
</html>

Interview Questions:

1. There are ____ different heading tags available in HTML
a. 8
b. 6
c. 5
d. 3
Answer: b

2. Which html heading tag displays a largest heading text?
a. h1
b. h6
c. h7
d. head
Answer: a