SC2-4-2-title

From Automated WCAG Monitoring Community Group
Jump to: navigation, search

This test belongs to 2.4.2 Page Titled

Status

Version 0.3: For review

Description

This test checks that the page title (the <title> element in the <head> section of a webpage)

  • Exists.
  • Is not empty.
  • Identifies the role or content of the web page.

Background

Assumptions

Test properties

Property Possible values
Test name Page Title
Test requirement 2.4.2 Page Titled
Test mode semiAuto
Required expertise and skills no prior knowledge
Additional expertise and skills
Test environment HTML source or DOM
Test subject single web page

Test procedure

Selector

Test mode: earl:automatic

<head>

Step 1

Test mode: earl:automatic

Check that there is a <title> element in the <head> section of the html document. if no, return

Property Value
TestCase SC2-4-2-title
Identifier SC2-4-2-title-fail1
Outcome failed
ErrorMessage Missing title element
Pointer position
Info


if yes, continue with step 2

Step 2

Test mode: earl:automatic

Check for multiple title elements in head section of page. if yes, return

Property Value
TestCase SC2-4-2-title
Identifier SC2-4-2-title-fail2
Outcome failed
ErrorMessage multiple title elements in head section.
Pointer position
Info


if no, continue with step 3

Step 3

Test mode: earl:automatic

Check if page title is empty or contains only white space.

if yes, return

Property Value
TestCase SC2-4-2-title
Identifier SC2-4-2-title-fail2
Outcome failed
ErrorMessage Page title is empty.
Pointer position
Info


if no, continue with step 4

Step 4

Test mode: earl:automatic

Check if the title is a filename or a URL:

  • Check if the URL of the page is used as the page title.
  • Check if page title ends with a "." followed by a known file extension.

if yes, return

Property Value
TestCase SC2-4-2-title
Identifier SC2-4-2-title-fail4
Outcome failed
ErrorMessage filename or URL used as webpage title.
Pointer position
Info


if no, continue with step 5

Step 5

Test mode: earl:manual

Prompt user to look at the title and content of the page.

User input question

Item presented to the user: Web page (with the title presented in a separate textbox, title does not always show up on mobile devices).

Question: Does the webpage title identify the content or purpose of this webpage?

Answer options: yes/no.

Help text: A page title should describe the content or purpose of the webpage.

A good web page title consists of two or 3 parts, usually separated by a
-
or a
|
:
  • A descriptive page title for the page itself.
  • (optional) If the web page is a part of a section of the website, include the section name.
  • The website name or domain name.

The web page title usually comes first, but any order of these is acceptable.

Repair suggestion: What would you suggest as a suitable title for this page?

Properties of the test step:

  • context-sensitive = yes
  • user interaction (with the web content) required = no


if no, return

Property Value
TestCase SC2-4-2-title
Identifier SC2-4-2-title-fail5
Outcome failed
ErrorMessage page title does not identify the webpage.
Pointer position
Info


if yes, return

Property Value
TestCase SC2-4-2-title
Identifier SC2-4-2-title-pass1
Outcome passed
Pointer position
Info