HTML provides six levels of headings, from <h1>
to <h6>
.
Headings are used to define titles or subtitles that organize the content on a webpage.
<h1> represents the most important heading, and <h6> represents the least important.
<h1>Main Heading</h1>
<h2>Subheading</h2>
<h3>Section Title</h3>
<h4>Subsection</h4>
<h5>Minor Heading</h5>
<h6>Smallest Heading</h6>
<h1>
for the main title of the page (only once).<h2>
to <h6>
to organize subtopics and content sections.