RGAA 3.2016 - Rule 9.1.1

Summary

This test consists in checking whether a heading of level 1 is present on the page.

Business description

Criterion

9.1

Test

9.1.1

Description

Dans chaque page Web, y a-t-il un titre de niveau 1 (balise h1 ou balise possédant un rôle ARIA "heading" associé à une propriété aria-level="1") ?

Level

A

Technical description

Scope

Page

Decision level

Decidable

Algorithm

Selection

Set1

<h1> tags included in the <body> tag and all the tags with a "role" attribute equals to "heading" and an "aria-level" attribute equals to "1" (h1, [role=heading][aria-level=1])

Set2

The <h1> tag of the page within the <head> tag (head title)

Process

Test1

Test whether Set1 is not empty. If false, raise a MessageA

MessageA : Heading of level 1 missing
  • code : H1TagMissing
  • status: Pre-Qualified
  • present in source : no

Analysis

Passed

The page has a heading of level1 (Set1 is not empty)

Failed

The page has no heading of level1 (Set1 is empty)

TestCases

TestCases files for rule 9.1.1