Coding challenges to learn about web accessibility.
-
Install Docker or Docker Toolbox
-
git clone https://github.com/rebeccacremona/a11y-games.git
-
cd a11y-games
-
Fire up the web server:
make up
-
Navigate to a11y games:
- Docker: head to http://localhost/
- Docker Machine: run
docker-machine ip
to discover the IP address of your virtualbox. Then, head to http://that-ip-address.
-
Hit "Begin"! You'll be presented with a series of challenges. To advance to the next challenge and win the game, fix the broken web elements, making them fully accessible by altering the html, tweaking the css, or adding javascript to the specified source file. (There are guidelines and hints in the code to help you along.)
-
To rebuild the website and experience your changes:
make rebuild
, and refresh your browser window. -
When you are done playing, to stop the containers:
make down
Check out the challenge's info page for a more detailed introduction to the accessibility issues it addresses. Each challenge also comes with a sample solution.
For tutorials and code samples, check out the Mozilla Developer Network's spectacular documentation on web accessibility.
Concept by @bensteinberg. Inspired by warc.games