Coding task · HTML and CSS course · Module 11: Developer Tools
Picture element with multiple sources
The <picture> element lets the browser choose the best image format. Inside, we place <source> elements with different formats (avif, webp) and <img> as a fallback.
Task
Replace the img element with a picture element containing two source elements (avif, webp) and img as a fallback.