Test Group 2: Subheading Tests

Markup and Rules for Subheading Tests
Test
Number
Test Description Rules Pass Nodes Fail Nodes Markup
4 Properly Nested Headings HEAD-2: Heading elements that follow the last h1 element must be properly nested. Yes None
  • H2-H6 (HTML 4.0)
5 Improperly Nested Headings HEAD-2: Heading elements that follow the last h1 element must be properly nested. Yes Yes
  • H2-H6 (HTML 4.0)
6 Headings Containing Text HEAD-3: All subheadings (h2...h6) must contain text content. Yes None
  • H2-H6 (HTML 4.0)
7 Headings With No Text Content HEAD-3: All subheadings (h2...h6) must contain text content. Yes Yes
  • H2-H6 (HTML 4.0)
8 Content Between Headings HEAD-4: Sub haedings of the same level should have content between the headings Yes None
  • H2-H6 (HTML 4.0)
9 No Content Between Headings HEAD-4: Sub haedings of the same level should have content between the headings Yes Yes
  • H2-H6 (HTML 4.0)
10 Unique Heading Text HEAD-5: The text content of headings of the same level within the same section should be unique. Yes None
  • H2-H6 (HTML 4.0)
11 Non-Unique Heading Text HEAD-5: The text content of headings of the same level within the same section should be unique. Yes Yes
  • H2-H6 (HTML 4.0)
12 Headings With Image alt Text HEAD-6: The text content of an subheading element (h2-h6) should not only come from the alt attribute value of img elements. Yes None
  • H2-H6 (HTML 4.0)
13 Headings Containing Only Image alt Text HEAD-6: The text content of an subheading element (h2-h6) should not only come from the alt attribute value of img elements. Yes Yes
  • H2-H6 (HTML 4.0)
14 Concise Headings HEAD-7: The text content of headings should be concise (less than 65 characters). Yes None
  • H2-H6 (HTML 4.0)
15 Non-Concise headings HEAD-7: The text content of headings should be concise (less than 65 characters). Yes Yes
  • H2-H6 (HTML 4.0)
16 All Subheading Rules Obeyed HEAD-2: Heading elements that follow the last h1 element must be properly nested. Yes None
  • H2-H6 (HTML 4.0)
HEAD-3: All subheadings (h2...h6) must contain text content. Yes None
HEAD-4: Sub haedings of the same level should have content between the headings Yes None
HEAD-5: The text content of headings of the same level within the same section should be unique. Yes None
HEAD-6: The text content of an subheading element (h2-h6) should not only come from the alt attribute value of img elements. Yes None
HEAD-7: The text content of headings should be concise (less than 65 characters). Yes None
17 All Subheading Rules Violated HEAD-2: Heading elements that follow the last h1 element must be properly nested. Yes Yes
  • H2-H6 (HTML 4.0)
HEAD-3: All subheadings (h2...h6) must contain text content. Yes Yes
HEAD-4: Sub haedings of the same level should have content between the headings Yes Yes
HEAD-5: The text content of headings of the same level within the same section should be unique. Yes Yes
HEAD-6: The text content of an subheading element (h2-h6) should not only come from the alt attribute value of img elements. Yes Yes
HEAD-7: The text content of headings should be concise (less than 65 characters). Yes Yes