RGAA 3.2016 - Rule 8.6.1

Summary

This test consists in checking the relevancy of the title tag in the page.

Business description

Criterion

8.6

Test

8.6.1

Description

Pour chaque page Web ayant un titre de page (balise title), le contenu de cette balise est-il pertinent ?

Level

A

Technical description

Scope

Page

Decision level

Semi-Decidable

Algorithm

Set1

The content of the <title> tag within the <head> (head title)

Process

Test1

We check whether the title is found amoung the blacklisted titles loaded by the nomenclature "UnexplicitPageTitle".

For each element returning false in Test1, raise a MessageA. Raise a MessageB instead.

MessageA : Irrelevant title
  • code : NotPertinentTitle
  • status: Failed
  • parameter : the textual content, snippet
  • present in source : yes
MessageB : Check title pertinence
  • code : CheckTitlePertinence
  • status: Pre-Qualified
  • parameter : the textual content, snippet
  • present in source : yes

Analysis

Not Applicable

The page has no <title> tag (Set1 is empty)

Failed

The title of the page has been found in the blacklist (Test1 returns true)

Pre-Qualified

The title of the page has not been found in the blacklist (Test1 returns false)

TestCases

TestCases files for rule 8.6.1