Question: Modify the second in egypt.html to use the srcset and sizes attributes. The srcset attribute should indicate the image names and associated sizes: luxor _

Modify the second in egypt.html to use the srcset and sizes attributes.
The srcset attribute should indicate the image names and associated sizes:
luxor_600.jpg is 600 pixels wide
luxor_800.jpg is 800 pixels wide
luxor_1200.jpg is 1200 pixels wide
The sizes attribute should describe the image size requirements for various viewport widths:
When the viewport width is at least 700px wide, the image width should be 600px.
When the viewport width is at least 500px wide, the image width should be 400px.
The default image width should be 200px.
Resizing the browser width should cause the three different images to display at the 500 and 700 breakpoints.
Art direction for different viewport widths (3 points)
Add tags around the third in egypt.html. Then add the appropriate tag inside so hotel_wide.jpg is displayed instead of hotel_narrow.jpg when the viewport width is at least 500px wide.
Resizing the browser should display hotel_narrow.jpg when the viewport width is <500px wide and hotel_wide.jpg otherwise.
SVG image for list background (2 points)
Modify styles.css so check.svg is displayed centered in the background of the unordered list. Set the following CSS properties:
background-image should display check.svg
background-repeat should be no-repeat
background-position should be center
background-size should be 60vw
Resizing the browser width should cause the check.svg image to grow and shrink.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!