Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 1016 Bytes

no-accesskey-attribute.md

File metadata and controls

29 lines (18 loc) · 1016 Bytes

no-accesskey-attribute

✅ The extends: 'recommended' property in a configuration file enables this rule.

🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

Enforce no accesskey prop on element. Access keys are HTML attributes that allow web developers to assign keyboard shortcuts to elements. Inconsistencies between keyboard shortcuts and keyboard commands used by screenreader and keyboard only users create accessibility complications so to avoid complications, access keys should not be used.

This rule takes no arguments.

Examples

This rule allows the following:

<div></div>

This rule forbids the following:

<div accesskey="h"></div>

References