Design comparison
Solution retrospective
Hello everyone, I have just finished the Frontend Mentor social-proof-section-master challenge. please you can suggest to me ways to improve my code. I noticed most of the css code does not work on internet explorer. Please is there a way I can make it work, thanks.
Community feedback
- @VCaramesPosted almost 2 years ago
Hey there! 👋 Here are some suggestions to help improve your code:
- Along with the blank alt tag, you also want to include the aria-hidden=“true” to your stars to fully remove it from assistive technology.
More Info:📚
https://www.w3schools.com/html/html_images_picture.asp
- The profile images are not decorative. They need to haveAlt Tags; It should state the following; “Headshot of -person’s full name-“
- The
article
element is not the best choice for wrapping these testimonials. In order to use thearticle
element the component needs to be able to make sense on its own and be independently distributable (can be used in on another site).
You instead, want to wrap each individual testimonial component in a
Figure
element, the individuals information should be wrapped in aFigcaption
element and lastly, the testimonial itself should be wrapped in aBlockquote
element.Code:
<figure> <figcaption></figcaption> <blockquote></blockquote> </figure>
More Info:
If you have any questions or need further clarification, feel free to reach out to me.
Happy Coding!🎄🎁
Marked as helpful1@Oluwatobi9034Posted almost 2 years ago@vcarames Thank you very much for your feedback. I really do appreciate.
0@Oluwatobi9034Posted almost 2 years agoHello @vcarames, can I add both the property aria-hidden and alt attribute ?
0@VCaramesPosted almost 2 years ago@Oluwatobi9034
For images that are solely decorative, yes.
The
alt
would be left blank (alt=""
)1 - @catherineisonlinePosted almost 2 years ago
Nice solution 🤩
To improve the code there are several tips on how you can use an alt attribute for images. If the image is just for decoration you can still write an alt attribute but leave it empty, such images don’t need any alt tag but you will need to also add aria-hidden=“true”. Otherwise, you need to use an alt tag to describe the image for accessibility.
According to MDN “The alt attribute holds a text description of the image, which isn't mandatory but is incredibly useful for accessibility — screen readers read this description out to their users so they know what the image means. Alt text is also displayed on the page if the image can't be loaded for some reason: for example, network errors, content blocking, or linkrot.“
IF THIS WAS HELPFUL PLEASE MARK IT AS HELPFUL 🤩
Marked as helpful0@Oluwatobi9034Posted almost 2 years ago@catherineisonline thank you so much for your feedback. I really do appreciate.
0
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