How this tool computes its result
Parses pasted HTML via DOMParser, extracts all H1-H6 tags in order of appearance, and measures header quality against 100-point scale. Scoring deducts points for missing or multiple H1 tags (30 points), missing H2 when multiple headers exist (15 points), hierarchy violations where a level jumps more than one tier without intervening headers (15 points), empty headers (10 points), and headers exceeding 70 characters (5 points). Hierarchy is checked by tracking previousLevel and flagging jumps like H1 -> H3. Final score is clamped to 0-100 and mapped to a letter grade: A for >=90, B for >=75, C for >=60, D for >=40, else F.
