Home » Computer Science » HTML5 » What is the srcset attribute used for in HTML5 <img> tags?

What is the srcset attribute used for in HTML5 <img> tags?

A. To specify alternative text for an image
B. To define multiple image sources for different device resolutions
C. To link a fallback image
D. To set the image title

Option: B