@MelvinAguilar
Posted
Hi @abilioassis 👋, good job completing this challenge! 🎉
I like this solution for the challenge.
- 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 in your css file to modify the image.
Example:
<picture>
<source media="(max-width: 375px)" srcset="./images/image-product-mobile.jpg">
<img src="./images/image-product-desktop.jpg" alt="your_alt_text">
</picture>
Good job, and happy coding! 😁
Marked as helpful