Design comparison
SolutionDesign
Community feedback
- @sulemaan7070Posted over 1 year ago
hey MooseCowBear😄, great job!! I would recommend you to use the
picture
element for the site..Using the picture element for responsively switching between Images is considered as best practice
<picture> <source media="(min-width: 650px)" srcset="img_food.jpg"> <source media="(min-width: 465px)" srcset="img_car.jpg"> <img src="img_girl.jpg"> </picture>
more about picture element here📚
hope that helps, 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