The srcset attribute of an img element is used to:
- Add a caption
- Lazy-load scripts
- Offer images of different resolutions so the browser picks the best one
- Set the alt text
Answer
C) Offer images of different resolutions so the browser picks the best one
srcset lists alternative image files and widths for responsive images.
Computer Science MCQ · More HTML5 for Mobiles MCQs · Practise