<picture>

noun

say it: “PIK-cher” /ˈpɪktʃər/

An HTML element that holds source choices and one img, so the browser can pick a newer file format or a different crop of the same picture.

What is <picture>?

<picture> — The element that offers image sources for responsive selection before a required img element.

<picture>
  <source media="(width < 600px)" srcset="bread-close.jpg">
  <img src="bread-wide.jpg" alt="Fresh bread on a counter">
</picture>

In a sentence

  • “Inside the <picture>, the AVIF source comes first and the JPEG <img> comes last.”

Level: Journeyman · More HTML terms at this level

Updated