There is no way to perform the function using only the keyboard.

Link to There is no way to perform the function using only the keyboard. copied to clipboard
Rule ID:
User Impact:


Functionality MUST be available using the keyboard, unless the functionality cannot be accomplished in any known way using a keyboard.


Some people cannot use a mouse due to vision or motor disabilities. Content that can be operated with a mouse must also be made operable with a keyboard. When content is operable through a keyboard, it becomes operable by a variety of assistive technologies such as speech input software, sip-and-puff software, on-screen keyboards, scanning software, and alternate keyboards.

Code Examples

Good example:

Functional HTML elements:

<a href="">Deque</a>
<button>Watch the video</button>

ARIA link with full accessibility:

<span role="link" tabindex="0" data-href="">Fully accessible ARIA link to</span>


/* the jQuery click() event can be activated by mouse or keyboard */
    var href = $(this).attr('data-href');;

Failure example:

Non-standard link with Mouse Click Event (HTML):

<!-- keyboard users cannot tab to this mouse-only link -->
<span class="mouseOnlyLink" data-href="">Mouse-dependent link to</span>

Non-standard link with Mouse Click Event (Javascript):

/* the mousedown event handler is a problem for keyboard users */
  var href = $(this).attr('data-href');;

Non-standard link with Mouse Click Event (CSS):

.fakeLink {color: blue; text-decoration: underline;}
.fakeLink:hover {cursor:pointer;}    

How To Fix

Fix this issue by ensuring the component can be used by the keyboard.

Utilizing standard HTML form controls and link elements guarantees keyboard operation. User agents provide the keyboard operation of standard controls and additionally map them to an accessibility API. The API is then used by assistive technologies to extract the necessary information and relate them to the user. Standard controls and links include:

  • <a>
  • <button>
  • <input>(various types including, but not limited to: "text", "checkbox", "radio")
  • <select>
  • <textarea>

If you create a custom version of a native HTML element or a custom control or widget that does not have a native HTML equivalent, you must add keyboard focusability (via tabindex=”0”) and keyboard events via JavaScript as well as the relevant element role(s) using ARIA.