Skip to content

Instantly share code, notes, and snippets.

@dylanb
Last active November 17, 2020 21:52
Show Gist options
  • Save dylanb/f202e9882fe7c5edc82e to your computer and use it in GitHub Desktop.
Save dylanb/f202e9882fe7c5edc82e to your computer and use it in GitHub Desktop.
Rule ID Description Tags
accesskeys Ensures every accesskey attribute value is unique wcag2a, wcag211
area-alt Ensures <area> elements of image maps have an alternate text wcag2a, wcag111, section508, section508a
aria-allowed-attr Ensures all attributes that start with 'aria-' are valid for an element's role wcag2a, wcag411
aria-required-attr Ensures all elements that contain WAI-ARIA roles to ensure that all required ARIA attributes are present wcag2a, wcag411
aria-required-children Checks all elements that contain a WAI-ARIA role to ensure that all required children roles are present wcag2a, wcag411
aria-required-parent Checks all elements that contain a WAI-ARIA role to ensure that all required parent roles are present wcag2a, wcag411
aria-roles Ensures all elements with a role attribute use a valid value wcag2a, wcag411
aria-valid-attr-value Ensures all WAI-ARIA atributes to have valid values wcag2a, wcag411
aria-valid-attr Ensures all attributes that begin with aria- are valid WAI-ARIA attributes wcag2a, wcag411
audio-caption Ensures <audio> elements contain a <caption> element wcag2a, wcag122, section508, section508a
blink Ensures the <blink> element is not used wcag2a, wcag222
button-name Ensures all buttons have a discernible alternate text wcag2a, wcag412, section508, section508a
bypass Ensures that each page has at least one mechanism for a keyboard-only user to bypass the navigation and jump straight to the content wcag2a, wcag241, section508, section508o
checkboxgroup Ensures that all <input type="checkbox"> groups have a group and that that group designation is consistent wcag2a, wcag131
color-contrast Ensures the contrast between the foreground and the background colors meets the WCAG 2 AA contrast ratio thresholds wcag2aa, wcag143
data-table Ensures that data tables are marked up semantically and have the correct header structure wcag2a, wcag131
definition-list Ensures that all <dl> elements are structured correctly wcag2a, wcag131
dlitem Ensures that all <dt> and <dd> elements have a <dl> as a parent wcag2a, wcag131
document-title Ensures each HTML document contains a non-empty <title> element wcag2a, wcag242
duplicate-id Ensures every id attribute value is unique wcag2a, wcag411
empty-heading Ensures that headings on the page do not contain empty text wcag2a, wcag131
frame-title Ensures that all iframe and frame elements contain a unique and non-empty title attribute wcag2a, wcag241
heading-order Ensures that the order in which the headings appear in the DOM is semantically correct best-practice
html-lang Ensures every HTML document has a lang attribute and its value is valid wcag2a, wcag311
image-alt Ensures that every <img> element has alternate text or has a role of none or presentational wcag2a, wcag111, section508, section508a
input-image-alt Ensures that every <input type="image"> has alternate text wcag2a, wcag111, section508, section508a
label-title-only Ensures that every <input> that requires a label is not only labeled using the title attribute best-practice
label Ensures every form element has an appropriate label wcag2a, wcag332, wcag131, section508, section508n
layout-table Ensures presentational <table> elements do not use <th>, <caption> elements or the summary attribute wcag2a, wcag131
link-name Ensures that every link has discernible text wcag2a, wcag111, wcag412, section508, section508a
list Ensures that lists are structured correctly wcag2a, wcag131
listitem Ensures that every list item is used semantically wcag2a, wcag131
marquee Ensures that the <marquee> element is not used wcag2a, wcag222, section508, section508j
meta-refresh Ensures that <meta http-equiv="refresh"> is not used wcag2a, wcag2aaa, wcag221, wcag224, wcag325
meta-viewport Ensures that when <meta name="viewport"> is used, it does not disable text scaling and zooming wcag2aa, wcag144
object-alt Ensures that every <object> element has alternate text wcag2a, wcag111
radiogroup Ensures that all <input type="radio"> groups have a group and that that group designation is consistent wcag2a, wcag131
region Ensures all content on the page is contained within a landmark region best-practice
scope Ensures that the scope attribute is used correctly on tables best-practice
server-side-image-map Ensures that server-side image maps are not used wcag2a, wcag211, section508, section508f
skip-link Ensures the first link on the page is a skip link best-practice
tabindex Ensures that explicit tabindex attributes that are greater than 0 are not used best-practice
valid-lang Ensures lang attributes have valid values wcag2aa, wcag312
video-caption Ensures <video> elements have captions wcag2a, wcag122, wcag123, section508, section508a
video-description Ensures <video> elements have an audio description wcag2aa, wcag125, section508, section508a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment