29. What is the picture element?

<picture> provides a container for multiple image sources and supports responsive art direction and source selection. Each <source> can specify conditions such as media queries or supported image formats, with <img> serving as the fallback image.

Key Takeaways
  • picture supports art direction and source selection.
  • img remains the fallback image element.
Knowledge Check

Which element is commonly used as the fallback inside picture?