Skip to main content

HTML heading tag

Published 1 min readMarkdown
Part of seriesInterview-HTML
HTML heading tag

In HTML, the <h1> to <h6> tags are used to represent headings of different sizes. The <h1> tag represents the largest and most important heading, while the <h6> tag represents the smallest and least important heading.

Here is an example of how the heading tag works in an HTML document


<h1>This is a level 1 heading</h1>
<h2>This is a level 2 heading</h2>
<h3>This is a level 3 heading</h3>
<h4>This is a level 4 heading</h4>
<h5>This is a level 5 heading</h5>
<h6>This is a level 6 heading</h6>

No comments yet. Be the first to comment.

Interview-HTML

Part 7 of 18

In this series I will try to answer questions of HTML interviews in most simplest fashion. This will give user the chance of understanding the interview question of HTML in a conceptual manner.

Up nextHTML commentComments in an HTML document are used to provide explanations or notes about the code, and they are not displayed in the final rendered page. They are a useful way to leave notes for yourself or for other developers who may be working on the same cod...

More from this blog