HTML Headings

HTML provides six levels of headings from <h1> to <h6>. Headings are used to define titles and subtitles on a webpage. <h1> defines the most important heading, while <h6> defines the least important.

Note: Search engines use headings to index the structure and content of your web pages. Always use headings in a proper hierarchy for better SEO and accessibility.

Example


<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>

Output in Browser

This is Heading 1

This is Heading 2

This is Heading 3

This is Heading 4

This is Heading 5
This is Heading 6