STEP 1 · LEARNHow it works
Provide an alternative source and fallback img inside picture. Semantic structure should describe meaning, not visual appearance.
<picture><source media="(min-width: 800px)" srcset="landscape-wide.webp"><img src="landscape.jpg" alt="Landscape at sunset"></picture>
picture lets the browser choose an appropriate source. The img remains the required fallback and keeps the alternative text.
<picture><source srcset="landscape-wide.webp"></picture>
The fallback img is missing. If the source cannot be selected or loaded, picture provides neither the default image nor alt text.
STEP 2 · APPLYYour exercise
Complete the example. Provide an alternative source and fallback img inside picture.
index.htmlHTML
STEP 4 · CHECK
What needs to pass
0%not checked
- ○picture has a source with srcset.
- ○picture keeps a fallback img.
Explain the solution logic+
Place source before the image and add a complete img with src and alt at the end.