HTML & CSS · Middle · Question 75 of 75
What does srcset="logo.png 1x, logo@2x.png 2x" do?
- ✓Correct answer: Lets the browser choose a sharper image on high-density (retina) screens
- 2Shows both images one after another
- 3Picks an image based on viewport width
Explanation
Density (x) descriptors suit fixed-size images like logos. For images whose size depends on the layout, use width (w) descriptors with sizes.