@Mennatallah-Hisham
Posted
Hi Ledoux,
You did great 👍
Here are some suggestions to improve your code:
IMAGE
-
setting the image as a background will make it not accessible for screen reader users.
-
you can use <picture> element to change the image. the browser will choose the best match and display it.
<picture>
<source media="(min-width: 650px)" srcset="img_food.jpg">
<source media="(min-width: 465px)" srcset="img_car.jpg">
<img src="" alt="">
</picture>
ALT
- images should have descriptive alt text, which is important for SEO and screen reader users,alt="Gabrielle Chanel perfume"
Accessability
-
add aria-hidden="true" to the cart icon, it is used to hide decorative content/images/icons from screen readers which improves their experience
-
check how I made the price section more accessible here
here are some helpful articles:
Hope you find this helpful, Happy Coding
Marked as helpful