Submitted about 2 years ago
PRODUCT REVIEW PAGE USING HTML AND CSS
@iamdrmeka
Design comparison
SolutionDesign
Community feedback
- @MelvinAguilarPosted about 2 years ago
Hi @iamdrmeka ๐, good job on completing this challenge! ๐
I like this solution for the challenge. Here are a few suggestions I've made that you can consider in the future if you're looking to improve the solution further:
- Improve alternative texts by adding descriptive text to the
alt
attribute of the images. The alt attribute enables screen readers to read the information about on-page images and will be displayed instead if an image file cannot load. - You can use a <picture> tag when you need to change an image in different viewports. Using this tag will prevent the browser from loading both images, saving bandwidth and preventing you from utilizing a media query to modify the image.
Example:
<picture> <source media="(max-width: 820px)" srcset="./img-mobile.jpg"> <img src="./img-desktop.jpg" alt="your_alt_text"> </picture>
I hope those tips will help you.
Good job, and happy coding!
Marked as helpful0 - Improve alternative texts by adding descriptive text to the
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