<main>
<article>
<!-- insert iframe from youtube -->
<iframe width="560" height="315" src="https://www.youtube.com/embed/ojcNcvb1olg" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
<h2>Rocking the free web</h2>
<p>Mozilla are a global community of technologists, thinkers, and builders, working together to keep the Internet alive and accessible, so people worldwide can be informed contributors and creators of the Web. We believe this act of human collaboration across an open platform is essential to individual growth and our collective future.</p>
<p>Click on the images below to find more information about the cool stuff Mozilla does. <a href="https://www.flickr.com/photos/mathiasappel/21675551065/">Red panda picture</a> by Mathias Appel.</p>
</article>
<div class="further-info">
<!-- insert images with srcsets and sizes -->
<a href="https://www.mozilla.org/en-US/firefox/new/">
<img srcset="firefoxlogoonly120png 120png,
firefoxlogoonly400png 400png" sizes="(max width: 480px) 120px, 400px" src="img/firefoxlogoonlyRGB.png" alt="un renard orange sur une boule bleu">
</a>
<a href="https://www.mozilla.org/">
<img srcset="mozilladinosaurhead120png 120png,
mozilladinosaurhead400png 400png" sizes="(max width:480px) 120px, 400px" src="img/mozilladinosaurhead.png" alt="un tete de dinosaur">
</a>
<a href="https://addons.mozilla.org/">
<img srcset="firefoxaddons120jpg 120jpg,
firefoxaddons400jpg 400jpg" sizes="(max width:480px) 120px, 400px" src="img/firefoxaddons.jpg">
</a>
<a href="https://developer.mozilla.org/en-US/">
<img srcset="mdn.svg 120px" sizes="(max-width: 480px) 120px, 400px" src="img/mdn.svg" >
</a>
<div class="clearfix"></div>
</div>
<div class="red-panda">
<!-- insert picture element -->
<picture>
<source media="(min-width: 1200jpg)" srcset="redpanda1200.jpg">
<source media="(max-width: 600jpg)" srcset="redpanda600.jpg">
<img src="img/redpanda.jpg" alt="un panda roux">
</picture>
</div>
</main>
Inside srcset the pixel values need to have a “w” at the end not the file extension. For example srcset="firefox-logo120.png 120w, firefox-logo400.png 400w" .
The SVG can be a “normal” <img>. srcset and sizes aren’t needed since it’s a vector graphic that scales automatically. (One of the great advantages of SVG.)
In the <picture> if the big image and the fallback image are the same, you could leave out the <source> with the big image since the browser will automatically use the fallback image.
<header>
<h1>Mozilla</h1>
<!-- insert <img> element, link to the small
version of the Firefox logo -->
<img src="pictures/firefox_logo-only_RGB_120px.png" >
</header>
<main>
<article>
<!-- insert iframe from youtube -->
<h2>Rocking the free web</h2>
<p>Mozilla are a global community of technologists, thinkers, and builders, working together to keep the Internet alive and accessible, so people worldwide can be informed contributors and creators of the Web. We believe this act of human collaboration across an open platform is essential to individual growth and our collective future.</p>
<p>Click on the images below to find more information about the cool stuff Mozilla does. <a href="https://www.flickr.com/photos/mathiasappel/21675551065/">Red panda picture</a> by Mathias Appel.</p>
</article>
<div class="further-info">
<!-- insert images with srcsets and sizes -->
<a href="https://www.mozilla.org/en-US/firefox/new/">
<img srcset="pictures/firefox_logo-only_RGB_400px.png 400w,
pictures/firefox_logo-only_RGB_120px.png 120w"
sizes="(max-width:400px) 360px,
(max-width:120px) 80px,
1200px
src="pictures/firefox_logo-only_RGB.png"
alt="logo firefox"/>
</a>
<a href="https://www.mozilla.org/">
<img srcset="pictures/mozilla-dinosaur-head-400px.png,
pictures/mozilla-dinosaur-head-120px.png"
sizes="(max-width: 400px) 360px,\
(max-width: 120px) 80px,
1200px"
src="pictures/mozilla-dinosaur-head.png"
alt= "mozila dinosaur head"/>
</a>
<a href="https://addons.mozilla.org/">
<img srcset="pictures/firefox-addons-120px.jpg 120w"
sizes="(max-width:120px) 80px
400px"
src="pictures/firefox-addons.jpg"
alt="firefox addons"/>
</a>
<a href="https://developer.mozilla.org/en-US/">
<img src="pictures/mdn.svg"
alt="line head"/>
</a>
<div class="clearfix"></div>
</div>
<div class="red-panda">
<!-- insert picture element -->
<picture>
<source media="(max-width: 600px)" srcset="pictures/red-panda-600px.jpg"/>
<img src="pictures/red-panda.jpg" alt="red panda"/>
</picture>
</div>
</main>