Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 934 Bytes

no-accesskey-attribute.md

File metadata and controls

27 lines (17 loc) · 934 Bytes

no-accesskey-attribute

🔧 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