Forum Moderators: phranque
<div id="photoblock">
<img class="imagemain-border" alt="example"
src="javascripts/images/catalog/mainimage-0.jpg"
srcset="javascripts/images/catalog/mainimage-1.jpg 300w,
javascripts/images/catalog/mainimage-2.jpg 500w,
javascripts/images/catalog/mainimage-3.jpg 700w,
javascripts/images/catalog/mainimage-4.jpg 900w,
javascripts/images/catalog/mainimage-5.jpg 1600w" />
</div>
[edited by: justa at 7:34 am (utc) on Sep 20, 2018]
<picture>
<source srcset="/a.jpg" media="(min-width: 1200px)">
<source srcset="/b.jpg" media="(min-width: 900px)">
<source srcset="/c.jpg" media="(min-width: 768px)">
<source srcset="/d.jpg" media="(min-width: 500px)">
<source srcset="/e.jpg" media="(max-width: 499px)">
<img src="/default-image.jpg" alt="alt text" class="class1 class2">
</picture>
I'm receiving an eror message from my editor (EW4) saying “In HTML5 the attribute 'sizes' is not permitted for the <image> tag.
The Breakpoint Generator site did say that the 'sizes' attribute should be adjusted to fit the actual dimensions in my page. I don't understand that statement. 1080px is the correct width for the full size version of that image. Do I need to make an adjustment?