Warning:
    This wiki has been archived and is now read-only.
SC1-3-1-headings
This test belongs to 1.3.1 Info and Relationships.
Status
Contents
- 1 Status
 - 2 Description
 - 3 Background
 - 4 Assumptions
 - 5 Test properties
 - 6 Test procedure
 
Description
This test checks that a page is properly organized using headings.
Background
- G141: Organizing a page using headings
 - H42: Using h1-h6 to identify headings
 - F43: Failure of Success Criterion 1.3.1 due to using structural markup in a way that does not represent relationships in the content
 - ARIA12: Using role=heading to identify headings
 - F2: Failure of Success Criterion 1.3.1 due to using changes in text presentation to convey information without using the appropriate markup or text
 
Assumptions
No assumptions yet
Test properties
| Property | Possible values | 
|---|---|
| Success Criterion | 1.3.1 Info and Relationships | 
| Test name | Proper use of headings | 
| Test mode | SemiAuto | 
| Test environment | HTML source | 
| Test subject | Web page | 
| User expertise and skills | No prior knowledge | 
| User profile | Requires sight | 
Test procedure
Selector
earl:automatic
Select:
-  the h1,h2,h3,h4,h5,h6 elements. Selector: 
//*[self::h1 or self::h2 or self::h3 or self::h4 or self::h5 or self::h6] -  each elements with the attribute role="heading". Selector: 
//*[self::*[role="heading"]] -  the 
strong,belements. Selector://*[self::strong or self::b] -  the 
div,span,pelements with CSS class="heading" 
Step 1: check element type
earl:automatic
-  Check if the element is of type 
h1,h2,h3,h4,h5,h6continue with #Step 2: heading content is non-empty (H42) - Check if the element has attribute role="heading" continue with #Step 4: Examine element with role="heading" (ARIA12)
 -  Check if the element is of type 
div,span,pelements with CSS class="heading" andstrong,bcontinue with #Step 5: using changes in text presentation to convey information (F2) 
Step 2: heading content is non-empty (H42)
earl:automatic
Check if the content of h1,h2,h3,h4,h5,h6 is Non-empty.
if yes, continue with #Step 3: heading markup is used when content is a heading
else return
| Property | Value | 
|---|---|
| TestCase | SC1-3-1-headings | 
| Identifier | SC1-3-1-headings-failed1 | 
| Outcome | failed | 
| ErrorMessage | The heading element must have content. | 
| Pointer | position | 
| Info | 
Step 3: heading markup is used when content is a heading (H42)
earl:manual
User input question
Item presented to the user: Heading with the corresponding text
Question: Does the text is a heading with a correct level?
Answer options: "yes/no"
Help text:
Repair suggestion:
Properties of the test step:
- context-sensitive = yes
 - user interaction (with the web content) required = yes
 
if yes, return
| Property | Value | 
|---|---|
| TestCase | SC1-3-1-headings | 
| Identifier | SC1-3-1-headings-passed1 | 
| Outcome | passed | 
| Pointer | position | 
| Info | 
else return
| Property | Value | 
|---|---|
| TestCase | SC1-3-1-headings | 
| Identifier | SC1-3-1-headings–failed2 | 
| Outcome | failed | 
| ErrorMessage | the text is not a heading with a correct level. | 
| Pointer | position | 
| Info | 
Step 4: Examine element with role="heading" (ARIA12)
earl:manual
User input question
Item presented to the user: element, the content of the element, and aria-level attribute (if exist)
Question: Does the text is a heading with a correct level?
Answer options: "yes/no"
Help text:
Repair suggestion:
Properties of the test step:
- context-sensitive = yes
 - user interaction (with the web content) required = yes
 
if yes, return
| Property | Value | 
|---|---|
| TestCase | SC1-3-1-headings | 
| Identifier | SC1-3-1-headings-passed2 | 
| Outcome | passed | 
| Pointer | position | 
| Info | 
else return
| Property | Value | 
|---|---|
| TestCase | SC1-3-1-headings | 
| Identifier | SC1-3-1-headings–failed3 | 
| Outcome | failed | 
| ErrorMessage | the text is not a heading with a correct level. | 
| Pointer | position | 
| Info | 
Step 5: using changes in text presentation to convey information (F2)
earl:manual
User input question
Item presented to the user: strong,b and div,span,p that has CSS class="heading" with the content of them
Question: Does the text is a heading?
Answer options: "yes/no"
Help text:
Repair suggestion:
Properties of the test step:
- context-sensitive = yes
 - user interaction (with the web content) required = yes
 
if yes, return
| Property | Value | 
|---|---|
| TestCase | SC1-3-1-headings | 
| Identifier | SC1-3-1-headings–failed4 | 
| Outcome | failed | 
| ErrorMessage | styled text is used to convey structural information. | 
| Pointer | position | 
| Info | 
else return
| Property | Value | 
|---|---|
| TestCase | SC1-3-1-headings | 
| Identifier | SC1-3-1-headings-passed3 | 
| Outcome | passed | 
| Pointer | position | 
| Info |