Accessibility fix guides
37 of the problems automated testing finds most often, each with who it affects and how to fix it. Every guide is named after the axe-core rule that detects it, the same name our scan reports use.
Looking for a requirement rather than a problem? See all WCAG success criteria.
ARIA
- ARIA input fields must have an accessible name
aria-input-field-nameWCAG 4.1.2 - ARIA commands must have an accessible name
aria-command-nameWCAG 4.1.2 - Elements must only use supported ARIA attributes
aria-allowed-attrWCAG 4.1.2 - Required ARIA attributes must be provided
aria-required-attrWCAG 4.1.2 - ARIA attributes must conform to valid values
aria-valid-attr-valueWCAG 4.1.2 - ARIA attributes must conform to valid names
aria-valid-attrWCAG 4.1.2 - Certain ARIA roles must contain particular children
aria-required-childrenWCAG 1.3.1 - Certain ARIA roles must be contained by particular parents
aria-required-parentWCAG 1.3.1
Colour and contrast
- Elements must meet minimum color contrast ratio thresholds
color-contrastWCAG 1.4.3 - Links must be distinguishable without relying on color
link-in-text-blockWCAG 1.4.1
Forms
- Form elements must have labels
labelWCAG 4.1.2 - Select element must have an accessible name
select-nameWCAG 4.1.2 - autocomplete attribute must be used correctly
autocomplete-validWCAG 1.3.5
IDs and markup
- IDs used in ARIA and labels must be unique
duplicate-id-ariaWCAG 4.1.2
Images and text alternatives
- Images must have alternative text
image-altWCAG 1.1.1 - Image buttons must have alternative text
input-image-altWCAG 1.1.1, 4.1.2 - [role="img"] and [role="image"] elements must have alternative text
role-img-altWCAG 1.1.1 - <svg> elements with an img or image role must have alternative text
svg-img-altWCAG 1.1.1 - Documents must have <title> element to aid in navigation
document-titleWCAG 2.4.2 - Frames must have an accessible name
frame-titleWCAG 4.1.2 - <video> elements must have captions
video-captionWCAG 1.2.2
Keyboard
- Interactive controls must not be nested
nested-interactiveWCAG 4.1.2 - Scrollable region must have keyboard access
scrollable-region-focusableWCAG 2.1.1, 2.1.3
Language
- <html> element must have a lang attribute
html-has-langWCAG 3.1.1 - <html> element must have a valid value for the lang attribute
html-lang-validWCAG 3.1.1 - lang attribute must have a valid value
valid-langWCAG 3.1.2
Names of links, buttons and controls
- Links must have discernible text
link-nameWCAG 2.4.4, 4.1.2 - Buttons must have discernible text
button-nameWCAG 4.1.2 - ARIA hidden element must not be focusable or contain focusable elements
aria-hidden-focusWCAG 4.1.2 - Headings should not be empty
empty-headingBest practice, not a WCAG requirement
Page structure and lists
- <ul> and <ol> must only directly contain <li>, <script> or <template> elements
listWCAG 1.3.1 - <li> elements must be contained in a <ul> or <ol>
listitemWCAG 1.3.1 - <dl> elements must only directly contain properly-ordered <dt> and <dd> groups, <script>, <template> or <div> elements
definition-listWCAG 1.3.1
Tables
- Table headers in a data table must refer to data cells
th-has-data-cellsWCAG 1.3.1 - Table cell headers attributes must refer to other <th> elements in the same table
td-headers-attrWCAG 1.3.1
Zoom and touch targets
- All touch targets must be 24px large, or leave sufficient space
target-sizeWCAG 2.5.8 - Zooming and scaling must not be disabled
meta-viewportWCAG 1.4.4