@VCarames
Posted
Hey there! 👋 Here are some suggestions to help improve your code:
-
The Alt Tag Description for the image needs to be improved upon. You want to describe what the image is; they need to be readable. Assume you’re describing the image to someone.
-
This challenges requires the use of two images 🎑 for different breakpoints. The Picture Element will facilitate this.
Here is an example of how it works: EXAMPLE
Syntax:
<picture>
<source media="(min-width: )" srcset="">
<img src="" alt="">
</picture>
More Info:
https://www.w3schools.com/html/html_images_picture.asp
https://web.dev/learn/design/picture-element/
If you have any questions or need further clarification, let me know.
Happy Coding! 👻🎃
Marked as helpful
@Mourad3rd
Posted
@vcarames So using <picture>
instead of just <img>
gives me more control over the responsiveness of the image to be more flexible with it, right?
@VCarames
Posted
@Mourad3rd
Correct! The Picture because of the container of your images and by giving the source a min-width the image will then appear when you need it.
Marked as helpful