sizes

noun

say it: “SYZE-iz” /ˈsaɪzɪz/

An image attribute that tells the browser how wide the picture will appear at different screen widths, so it can pick the right file from srcset.

What is sizes?

sizes — An attribute describing an image's expected rendered width under different conditions.

In a sentence

  • “The sizes value says the photo fills the screen on phones and takes half of it on wide screens.”

Level: Journeyman · More HTML terms at this level

Updated