SELVARATHINAM
last year
Selvarathinamcountry asked

Why should we avoid skipping heading levels in HTML, like using <h2> and then jumping directly to <h5>?

Abhay Jajodia
Expert
last year
Abhay Jajodia answered

Hi SELVARATHINAM,

Headings are like a content outline. <h2> is a main section, and <h3>, <h4>, <h5> are smaller sub-sections under it.

If you jump from <h2> to <h5>, it can confuse screen readers and make the page structure harder to understand. It is better to go in order, like <h2> then <h3> for the next level.

If you have more questions, I am here to help 😊

HTML
This question was asked as part of the Learn HTML course.