This example demonstrates an accessible form using the FIELDSET, LEGEND and LABEL objects.
The FIELDSET defines the container for the form and the LEGEND provides a name to the FIELDSET.
Each control title makes use of the LABEL object and the FOR style attribute.
To access each form field, the user can either click on the text field, click on the label, use the TAB key, or press ALT + the underlined key.
By clicking on a control label, the specified control is given focus.
In addition to using LABEL, the ACCESSKEY style attribute specifies an acceleration key to give the form focus.
Each acceleration key is underlined in the label for easy identification.
© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.