Skip to main content

HTML Headings

HTML headings are titles or subtitles that you want to display on a webpage.

<h1>Headings 1</h1>
<h2>Headings 2</h2>
<h3>Headings 3</h3>
<h4>Headings 4</h4>
<h5>Headings 5</h5>
<h6>Headings 6</h6>

Usage of headings

<h1>is used for main heading. (Biggest in size)

<h2>is used for subheadings

if there are further sections under the subheadings then the <h3> elements is used.

<h6> for the small heading (smallest one).

Example
<h1>Headings 1</h1>
<h2>Headings 2</h2>
<h3>Headings 3</h3>
<h4>Headings 4</h4>
<h5>Headings 5</h5>
<h6>Headings 6</h6>
Loading...