The hierarchy rules
Headings are organized H1 (biggest, most important) through H6 (smallest, least important). They should form a strict outline: one H1, then H2s for top-level sections, then H3s nested inside H2s, then H4s inside H3s, and so on.
Don't skip levels (don't jump from H2 to H4) and don't use heading tags for visual styling. If you need a visual heading without semantic weight, use a styled <p> or <div>.