CodeZettaInterview Hub

HTML · Media · Fresh / Intern · Concept

Explain srcset and sizes.

Short Interview Answer

srcset lists candidates; sizes tells the browser layout width so it picks an appropriate resource.

Detailed Explanation

Descriptors can be width (w) or density (x). Wrong sizes causes over/under-fetching. Pair with modern formats.

Did you know this answer?