Kilotest: Diagnoses of heading structure illogical violation by HTML element 25 on WebAIM page

Here is how tools diagnose the heading structure illogical issue for HTML element 25 of the WebAIM page.

Basics

Diagnoses

  1. The heading structure is not logically nested. This h2 element appears to be the primary document heading, so should be an h1 element.

    Tool: HTML CodeSniffer (Squiz Labs)

    Rule: E-WCAG2AAA.Principle1.Guideline1_3.1_3_1_AAA.G141

  2. The heading structure is not logically nested. This h2 element should be an h1 to be properly nested.

    Tool: HTML CodeSniffer (Squiz Labs)

    Rule: E-WCAG2AAA.Principle1.Guideline1_3.1_3_1_AAA.G141