Click in order · HTML and CSS course · Module 11: Developer Tools

Building a picture element

How do you build a picture element with WebP format and a JPEG fallback?

Items to click

  • </picture>
  • <img src="img.jpg" alt="description">
  • <picture>
  • <source srcset="img.webp" type="image/webp">

You can check the correct answer by solving this task in the CodeWorlds game.