Question 1 of 30
A web developer is tasked with optimizing images for a responsive website that will be viewed on various devices, including mobile phones, tablets, and desktop computers. The developer decides to use the `srcset` and `sizes` attributes in the `` tag to ensure that the appropriate image is loaded based on the device\'s screen size and resolution. Given the following `srcset` attribute values: `srcset=\"image-small.jpg 480w, image-medium.jpg 800w, image-large.jpg 1200w\"` and the `sizes` attribute value of `sizes=\"(max-width: 600px) 480px, (max-width: 900px) 800px, 1200px\"`, which image will be selected for a device with a viewport width of 750 pixels?
image-medium.jpg
image-small.jpg
image-large.jpg
image-small.jpg and image-large.jpg

Preparing for Microsoft 98-383 Introduction to Programming Using HTML and CSS? Now land the interview.

73% of qualified candidates get rejected because of weak resumes. Build an ATS-optimized, recruiter-ready resume in under 5 minutes - free to start.

Build My Resume Free