Melvin Aguilar ๐ง๐ปโ๐ปโข 61,220
@MelvinAguilar
Posted
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 helpful
0