Loading…
Headings are like an outline for your page. They tell both users and search engines what each section is about. HTML provides six heading levels, from <h1> (most important) to <h6> (least important).
<h1>Main Title</h1> <!-- only ONE per page -->
<h2>Chapter</h2>
<h3>Section</h3>
<h4>Subsection</h4>
<h5>Minor heading</h5>
<h6>Smallest heading</h6>
<h1> per page — it is the main title, like the title of a book.Think of it like a book outline:
<h1> = Book title<h2> = Chapter<h3> = Section within a chapterCreate a heading structure for a blog:
<h1> with text "My Blog"<h2> with text "Recent Posts"<h3> with text "Learning HTML"<h3> with text "CSS Basics"The two <h3> headings are siblings under the same <h2>, representing two blog posts in the same section.