Design comparison
Community feedback
- @dedo-devPosted 3 months ago
Hi Dhia, great work to solve this challenge, I looked to your code because I need to solve a problem that I encountered and I found something where I can give you some tips.
-
To render proper images based on display size you need to use a
<picture>
tag instead of two<img>
tags withdisplay: none
set on it; Here is a useful article for getting started with picture element -
Use relative units instead of
px
, for example forpadding
andmedia queries
you can useem
while formargin
,border-radius
orfont-size
you can userem
; Here an article to getting started with relative units -
Try to make your
alt
text more descriptive and avoid the word image because the screen readers start with ' image of ', in your case this will sound like ' image of product image '. Try with something like this ' A bottle of Chanel Gabrielle Parfum ' this is still pooralt
text but it describes better the image to people with disabilities.
Hoping you find this useful ✌️
Keep Learning 📖 Keep Coding 💻
Marked as helpful0@Dhia-18Posted 3 months ago@dedo-dev Thanks for your feedback Daniele, I really appreciate it!
1 -
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