Visual Headings - same heading level used for subsections and the major heading
Test Case Summary
Test Case ID
TC13.2-1.b-fail-1
Test Case Description
Visual subheadings under a more major heading should have a lower programmatic level than the more major heading.
The code sample provides visual subheadings below a major heading. The subheadings are programmatically the same level as the major heading but should be at a lower level. A successful test should identify a FAIL against Baseline 13.2 Visual Headings.
Applicable ICT Baseline Test
13.2 Test Procedure for Visual Headings
Baseline Test ID: 13.2-VisHeadingProg
Test Instruction: 1.b
Test Case Detail
Expected Baseline Result
FAIL
The visual headings in the code sample are all at the same level, but some should be at a lower level
Test Data
Single-Page URL
Embedded Code
Code
Test Case Instruction
Test Instruction | Instruction Detail | Expected Test Case Result |
---|---|---|
IC-1 | Visually apparent headings, which denote sections of content. Headings are often in a larger, bolded font separated from paragraphs by extra spacing (though not always). Note the hierarchy and structure of each heading with respect to other headings on the page. | Visual apparent headings found. |
13.2-1 | Check that all visual headings are programmatically determinable and that programmatic heading levels logically match the visual heading presentation within the heading structure [SC 1.3.1]: | |
13.2-1.a | The most important heading(s) should have the highest priority level. For example, <h1> is a higher level than <h2> , which is higher than <h3> . |
Pass: The <h1> heading is higher than the other <h2> headings. |
13.2-1.b | Headings with an equal or higher level start a new section; headings with a lower level start new subsections that are part of the higher leveled section. | Fail: Headings at equal level start new subsection and should be at a lower level. Multiple headings (Baroque, Classical, Romantic, 20th Century) at <h2> should be at a lower level i.e., <h3> . |
Result | If the above check fails, then Baseline Test 13.2-VisHeadingProg fails. | FAIL; 13.2-1.b fails |