@fortuneiyoha
Posted
Congratulations on completing the challenge! 🎉
Picture Tag 📸:
- Noticed you're using media queries to swap images? Consider the
<picture>
tag, perfect for responsive images and art direction. - Example:
<picture>
<source media="(min-width: 900px)" srcset="large-image.jpg">
<source media="(min-width: 768px)" srcset="small-image.jpg">
<img src="fallback-image.jpg" alt="Example image">
</picture>
-
It allows different images for various screens without CSS, improving load times by serving optimized images.
-
Questions? Check my submission or reach out anytime.
-
For more information, you can Learn More about the <picture> element on W3Schools.
Great job! 😄
Happy coding!
Marked as helpful