9. Accessibility
Activity 9.01: Making a Page Accessible
Solution
- To start, create a file called
Activity 9.01.html
and copy the code fromactivity_1_inaccessible.html
into it. - Open that page in the browser and run the Axe accessibility checker in the developer tools.
The following screenshot shows the results you should see for this page. There are five distinct issues, with multiple occurrences of some of the issues (form label issues):
- The first issue to solve is changing the second label in the Rating the product section. It and the first label are associated with the same form field. Changing it to associate the label with the form field with the "
rate-2
" ID makes sense:Â Â Â Â Â Â Â Â Â Â Â <input type="radio" name="rating" value="1" id="rate-1"> Â Â Â Â Â Â Â Â Â Â <...