W3CWeb Accessibility Initiative Home

ACCESSKEY attribute for LEGEND

On this page: Test 1 | 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 : legend element

Procedure

  1. Using the standard keyboard or an assistive technology that emulates the keyboard, move focus to each form fieldset using the accesskey assigned to each fieldset legend element.

Run test

Form fieldset 1 (accesskey "A")

Form fieldset 2 (accesskey "B")

Form fieldset 3 (accesskey "C")

Expected results

  1. The keyboard or assistive technology that emulates the keyboard moves focus to each form fieldset. Focus is moved using the key that corresponds to the value of the accesskey attribute for each legend element.

Source code

<form action="../action/return.html" method="post" title="Test Form 1" enctype="application/x-www-form-urlencoded">
  <fieldset>
    <legend accesskey="a">Form fieldset 1 (accesskey "A")</legend>
    <label>
      <input type="text" name="text1"></input>
    </label>
    <br clear="none"></br>
    <label>
      <input type="text" name="text2"></input>
    </label>
    <br clear="none"></br>
    <label>
      <textarea rows="2" cols="20" name="textarea1"></textarea>
    </label>
  </fieldset>
  <fieldset>
    <legend accesskey="b">Form fieldset 2 (accesskey "B")</legend>
    <label>
      <input type="text" name="text3"></input>
    </label>
    <br clear="none"></br>
    <label>
      <input type="text" name="text2"></input>
    </label>
    <br clear="none"></br>
    <label>
      <textarea rows="2" cols="20" name="textarea2"></textarea>
    </label>
  </fieldset>
  <fieldset>
    <legend accesskey="c">Form fieldset 3 (accesskey "C")</legend>
    <label>
      <input type="reset" name="reset1" value="Reset"></input>
    </label>
    <label>
      <input type="submit" name="submit1" value="Submit"></input>
    </label>
  </fieldset>
</form>

References

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

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/07/01 19:42:29 $ by $Author: koteles $