W3CWeb Accessibility Initiative Home

ACCESSKEY attribute for INPUT buttons

On this page: Test 1 | Test 2 | Test 3 | References | About these tests

Nearby: More HTML 4.01 Tests | UAAG 1.0 Test Suite

UAAG 1.0 Requirement

Checkpoint 1.1 Full keyboard access (Priority 1 )
Provision 1 : Ensure that the user can operate, through keyboard input alone, any user agent functionality available through the user interface.

Test 1 :

Procedure

  1. Using the standard keyboard or an assistive technology that emulates the keyboard, the "Submit" button using accesskey "S".

Run test

Expected results

  1. The keyboard or an assistive technology that emulates the keyboard activates the submit button using accesskey "S".

Source code

<form action="../action/return.html" method="get" enctype="application/x-www-form-urlencoded">
  <label for="submit">Submit Button (Acceskey "S"): </label>
  <input id="submit" accesskey="S" type="submit" value="Submit" name="submit"></input>
</form>

Test 2 :

Procedure

  1. Using the standard keyboard or an assistive technology that emulates the keyboard, move focus to the text area and change the value of the text area using accesskey "T".
  2. Then, using the standard keyboard or an assistive technology that emulates the keyboard, activate the reset button using accesskey "R".

Run test


Expected results

  1. The standard keyboard or an assistive technology that emulates the keyboard moves focus to the TEXTAREA, allowing the user to change "Initial Value".
  2. The standard keyboard or an assistive technology that emulates the keyboard moves focus to and then activates the "reset" button to return the TEXTAREA to "Initial Value".

Source code

<form action="../action/return.html" method="get" enctype="application/x-www-form-urlencoded">
  <label for="textarea">Default Textarea (Accesskey "T"): </label>
  <textarea id="textarea" accesskey="T" name="textarea" rows="1" cols="14">Initial Value</textarea>
  <br clear="none"></br>
  <label for="reset">Reset Button (Accesskey "R"): </label>
  <input id="reset" accesskey="R" type="reset" value="reset" name="reset"></input>
</form>

Test 3 :

Procedure

  1. Then using the standard keyboard or an assistive technology that emulates the keyboard, and activate the "Test Button" using accesskey "B".

Run test

Expected results

  1. "Test Button" is activated by accesskey "B".

Source code

<form action="../action/return.html" enctype="application/x-www-form-urlencoded" method="get">
  <label for="test-button">Test Button (Accesskey "B"): </label>
  <input id="test-button" accesskey="B" type="button" value="Test Button" onclick="document.write("Test was successful. Click back on your browser to return to test suite.")"></input>
</form>

References

  1. HTML 4.01 specification for ACCESSKEY
  2. HTML 4.01 specification for INPUT

About this test suite

This test is part of a test suite for the User Agent Accessibility Guidelines (UAAG) 1.0 . This work is conducted by the User Agent Accessibility Guidelines Working Group , which is part of W3C's Web Accessibility Initiative (WAI) . Please send comments on this test to w3c-wai-ua@w3.org ( public archive ).


Test created by:

Last modified: $Date: 2003/08/08 20:53:01 $ by $Author: koteles $