A collection of accessibility code exercises, each focusing on a specific aspect of web accessibility. These exercises provide hands-on opportunities to practice identifying anti-patterns and implementing accessible solutions.
To get started with the exercises, follow these steps:
- Clone this repository:
git clone https://github.com/mdharshbarger/forms-and-widgets.git - Navigate to the project directory:
cd a11y-exercises - Open your project in Visual Studio Code.
- Install the "Live Server" extension from the Visual Studio Code marketplace.
Part 1: Fix the Form:
Objective: In this part of the activity, you’ll apply three key accessibility practices to improve the usability of the form for screen reader and keyboard users.
- Adding labels and associating them with inputs
- Grouping related fields
- Creating accessible error messages
Part 2: Fix the Toggle Switch
Objective: You are provided with a visually styled switch that is currently inaccessible. Your task is to make it usable with assistive technologies.
- Add Name, Role, and Value to the switch in the form
- Make it keyboard accessible