Gatsby was named the #1 new technology to learn in 2020!
To help you learn about Gatsby and our ecosystem, we invite you to take the #100DaysOfGatsby challenge! If you are new to Gatsby, you can follow along with our beginner-friendly weekly prompts. Or if you are familiar with Gatsby and want to go deeper, we invite you to build your first Gatsby Theme.
Learn more about #100DaysOfGatsby here!
Challenge 8: Enhance Your Site With Accessible Forms and Images
Web developers love Gatsby because a Gatsby site gives you rock solid performance, SEO, and sets you up for success in building an accessible site. However as you continue to develop your project, and your editors begin adding content to the site, all three of those site features may suffer.
Over the next three challenges, we’ll ask you to enhance your site’s performance, SEO, and accessibility, starting with the accessibility of your forms and images.
As a Gatsby developer, you want to ensure that everyone can access your work, including users who rely on assistive technology to read and navigate your site. Two of the biggest sinkholes for these users are inaccessible forms and images. In previous prompts, we asked you to add images and forms to your project. Now that you have those elements on your site, we ask that you examine and ensure their accessibility.
Accessibility Challenge Resources
Images
Become familiar with eslint-plugin-jsx-a11y. Gatsby ships with theeslint-plugin-jsx-a11y
package and warnings for all of its rules enabled by default. eslint-plugin-jsx-a11y
is an accessibility linting tool for your code, and encourages you to include alternative text for image tags.
Forms
Read why we believe accessible forms are important. Then apply WebAIM’s advice to your own forms.
What to Do If You Need Help
If you get stuck during the challenge, you can ask for help from the Gatsby community and the AskGatsbyJS Twitter account. You can find fellow Gatsby Developers on Discord, Reddit, and Dev.