CodeZettaInterview Hub

HTML · Semantics · Mid-Level · Concept

What is the HTML outline and how do browsers treat heading levels?

Short Interview Answer

Authors should use heading levels for hierarchy; the historic outline algorithm is not reliably used by browsers/AT.

Detailed Explanation

In practice, use visual and accessibility-friendly heading order. Don't rely on sectioning roots to reset heading ranks. Tools and AT mostly follow explicit h1–h6.

Did you know this answer?