Design comparison
Solution retrospective
I am still learning about aria-attributes, so is it a good idea to set the icons here to aria-hidden="true"?
Community feedback
- @VCaramesPosted almost 2 years ago
Hey there! 👋 Here are some suggestions to help improve your code:
- The
main
element should only ⚠️ be wrapping the card section since that is the main content of your page.
- The intro heading and paragraph ⚠️ should be wrapped inside a
header
element.
- The
figure
andfigcaption
are being used incorrectly ❌ and needed for this challenge.
- Using
CSS Grid
withGrid-Template-Areas
will make things way easier 💯 when building the layout; it will give you full control of the layout.
Here is an example of how it works: EXAMPLE
If you have any questions or need further clarification, feel free to reach out to me.
Happy Coding! 🎆🎊🪅
Marked as helpful1@Lamy237Posted almost 2 years agoHi @vcarames! Thank you for your feedback.
Unfortunately, I don't know how to use an img without a figure 😅 (that's the way I learned to use it) but I will try to work on that.
I applied all the other changes you suggested and the tip on using CSS Grid was awesome 💯! It worked perfectly 👌.
However, I ended up not needing some of the classes I had added before. As I am using BEM, is it a good practice to keep these classes in the html although I am not using them?
0 - The
- @nelsonleonePosted almost 2 years ago
Hello......congrats on completing the challenge, well done 🎊 🎊 .
Based on your question @melvin.... have already given a quality feedback tho. Just adding to it.
Yes, it is right to set
aria-hidden="true
on them.Note, if any image doesn't send a message across(just for design purposes) You can see to add
aria-hidden
and set thealt
to any empty string also;Have fun coding
Marked as helpful0@Lamy237Posted almost 2 years agoHi @nelsonleone! Thank you for your feedback 👌.
I am adding that alt ASAP 🚴♀️.
0 - @MelvinAguilarPosted almost 2 years ago
Hello there 👋. Good job on completing the challenge !
Yes, it is a good idea to set the icons to aria-hidden="true" if they are not providing any additional information. This will help ensure that screen readers do not read out the icons as part of the page content, which can be distracting and confusing for users.
Happy coding!
Marked as helpful0
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