This is a draft document supplied by the WCAG Techniques Task Force. It in no way represents a WCAG Working Group consensus or agreement and is provided for informational and discussion purposes only. The accessibility tests listed below should not be construed as required for conformance with the proposed WCAG2.
Copyright 2005, ATRC, University Of Toronto, All Rights Reserved. W3C liability, trademark, document use and software licensing rules apply.
This technical document shows the status of tests used in the HTML test suite for WCAG 2.0. It is under constant revision and may be changed or removed at any time.
The complete test suite may be viewed at http://www.w3.org/WAI/GL/WCAG20/tests/
Listed below are all the test cases sorted by status.
img
elements have an alt
attribute.
longdesc
) file is used for each img
element that does not have Alt text and/or body text conveying the same information as the image.
img
elements that have a longdesc
attribute also have an associated 'd-link'.
img
elements contains all text in the image unless the image text is decorative or appears elsewhere in the content.
img
elements, content text does not refer to the image by color alone.
img
elements is the empty string ("") if the image is decorative.
doctype
declaration.
title
element.
title
contains text.
title
is not placeholder text.
input
elements, with type
of "text", have an explicitly associated label.
input
elements with a type
attribute value of "image" have an alt
attribute.
input
elements with a type
attribute value of "image" identifies the purpose or function of the image.
area
elements have an alt
attribute.
area
elements identifies the link destination.
input
elements, with type
of "password", have an explicitly associated label
.
input
elements, with type
of "checkbox", have an explicitly associated label
.
input
elements, with type
of "file", have an explicitly associated label
.
input
elements, with type
of "radio", have an explicitly associated label
.
img
elements used as source anchors is different from the link text.
img
elements that are not used as source anchors conveys the same information as the image.
input
elements with a type
attribute value of "image" contains all non decorative text in the image.
area
elements contains all non decorative text in the image area.
img
elements is not placeholder text.
frames
have a title
attribute.
frame
titles
identify the purpose or function of the frame
.
frame
is accessible content.
h1
is h1
or h2
.
h2
is h3
or any header less than h3
.
h3
is h4
or any header less than h4
.
h4
is h5
or any header less than h5
.
h1
elements are not used for formatting.
h2
elements are not used for formatting.
h3
elements are not used for formatting.
h4
elements are not used for formatting.
h5
elements are not used for formatting.
h6
elements are not used for formatting.
lang
attribute(s).
title
is descriptive of the content.
area
link to sound file must have text transcript.
marquee
element is not used.
p
elements are not used as headers.
select
elements do not cause an extreme change in context.
style
to convey list depth.
fieldset
and legend
elements.
legend
text describes the group of choices.
legend
text is not empty or whitespace.
legend
text is not placeholder text.
frame
titles
are not empty.
frame
titles
do not contain placeholder text.
img
elements have associated images that do not flicker.
area
should not open new window without warning.
img
elements with images containing math expressions have equivalent MathML markup.
select
should contain optgroup
if it has a large number of options
.
table
must use th
elements.
table
must not use th
elements.
title
attribute.
title
attribute of all source a
(anchor) elements describes the link destination.
applet
should not use color alone.
applet
should not flicker.
applet
must have valid alt
attribute.
applet
disabled.
applet
user interface must be accessible.
blink
element should not be used.
object
s must not flicker.
title
is short.
input
should not use color alone.
input
element - Alt text should not be the same as the filename.
input
element - Alt text should not be placeholder text.
object
must not use color alone.
object
should be updated if object
changes.
object
are disabled.
object
user interface must be accessible.
object
link to multimedia file must have text transcript.
object
must have a title
.
object
must have a valid title
.
object
must have a text equivalent.
script
.
script
should not cause screen flicker.
script
is disabled.
script
must be accessible.
script
must have a noscript
section.
select
element must have an associated label
.
textarea
controls must have an associated label
.
textarea
control label
should be positioned close to control.
abbr
element.
acronym
element.
blockquote
must not be used for indentation.
iframes
must have alternate content.
onclick
requires onkeypress
.
script
must be keyboard accessible - ondbclick
must not be used.
script
must be keyboard accessible - onmousedown
requires ONKEYDOWN.
script
must be keyboard accessible - onmousemove
must not be used.
script
must be keyboard accessible - onmouseout
requires onblur
.
script
must be keyboard accessible - onmouseover
requires onfocus
.
script
must be keyboard accessible - onmouseup
requires onkeyup
.
table
must have a summary
.
table
summary
can not be empty.
table
summary
should be greater than 10 characters.
table
may have a summary
but only if it's empty.
table
cannot have a caption
.
input
element label
, type
of "password", should be positioned close to control.
input
element label
, type
of "checkbox", should be positioned close to control.
input
element label
, type
of "file", should be positioned close to control.
input
element label
, type
of "radio", should be positioned close to control.
input
control, type
of "text", must have valid default text.
object
should be updated if object
changes.
object
s are disabled.
object
user interface must be accessible.
blockquote
element to mark up block quotations.
table
must linearize.
object
link to multimedia file require equivalent alternatives (e.g., captions or auditory descriptions of the visual track).
table
may require a caption
.
table
header labels require terse substitutes.
table
header label
s must be terse.
pre
element should not be used to create tabular layout.
title
.
title
must describe the link group.
object
may require a long description.
abbr
.
embed
missing noembed
.
noembed
must have equivalent content.
embed
must have alt
attribute.
embed
must not have empty Alt text.
iframe
must not use longdesc
.
basefont
must not be used.
font
must not be used.
embed
element within the object
element.
id
attributes must be unique.
label
must not contain input
.
input
element must have only one associated label
.
label
must contain text.
label
must describe its associated control.
img
elements used as source anchors is not empty when there is no other text in the anchor.
(covered by tests 174 and 197)
img
elements with an ismap
attribute have a valid usemap
attribute.
(if using ismap then should not use usemap)
img
elements used as source anchors identifies the destination of the link.
(covered by tests 174 and 197)
applet
must be updated if applet
changes.
(WCAG2 does not cover applets)
frames
must be described.
(not needed due to other tests)
frameset
must have a noframes
section.
(good frameset support)
h5
is h6
or any header less than h3
.
(any header after an h5 is OK)
input
elements with a type
attribute value of "image" is less than 100 characters (English) or the user has confirmed that the Alt text is as short as possible.
(covered by test 3)
input
element, type
of "text", must have default text.
(no longer needed)
menu
items should not be used to format text.
(menu element is deprecated)
b
(bold) element is not used.
(now allowed)
i
(italic) element is not used.
(now allowed)
input
element, type
of "text", must have a tab index.
(tab order covered by user UAAG)
input
element, type
of "radio", must have a tab index.
(tab order covered by user UAAG)
input
element, type
of "password", must have a tab index.
(tab order covered by user UAAG)
input
element, type
of "checkbox", must have a tab index.
(tab order covered by user UAAG)
input
element, type
of "file", must have a tab index.
(tab order covered by user UAAG)
address
for author.
(does not improve accessibility)
address
of page author must be valid.
(does not improve accessibility)
img
elements do not contain a title
attribute.
(test not useful)
input
elements with a type
attribute value of "image" does not use the words "submit" or "button" (English).
Listed below are 18 tests related to Alt text. Two of the tests deal with long descriptions (LONGDESC) and d-links but because they are closely associated to Alt text I've listed them here too. Not all of these tests have been accepted by the group.