Interactive rating component - Introduction to web accessibility path
Design comparison
Solution retrospective
My goal is to improve my understanding of accessibility key concepts and best practices to ensure the websites I work on are accessible to everyone. Therefore, any feedback in this area would be greatly appreciated.
Community feedback
- @haquanqPosted 4 months ago
Hello @Andro87,
Nice work, your solution looks good!!
About web accessibility, the most basic practice is keep your HTML structure clean and clear (has good semantic, the flow of content is the priority when first structuring the layout). Further more about using ARIA specifications on elements, you can start by reading guidelines on this site.
Here is something you can improve:
- Whenever you want to send data away, use
form
element with inputs. In your case, you need to wrap all inputs insideform
. Further more, wrap all related inputs insidefieldset
withlegend
contains a short and descriptive explanation about how should these inputs insidefieldset
should be used (hide it with CSS for screen readers). - You can just put
input
element insidelabel
to make it cleaner (no need fordiv
).
<fieldset> <legend>Do something with these inputs</legend> .... inputs .... </fieldset>
Have a nice day!!!
Marked as helpful1@Andro87Posted 4 months agoHello @haquanq,
Thank you for your suggestions and your time!
Happy coding!!!!
0 - Whenever you want to send data away, use
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord